API Documentation
00001 // Module: Log4CPLUS 00002 // File: consoleappender.h 00003 // Created: 6/2001 00004 // Author: Tad E. Smith 00005 // 00006 // 00007 // Copyright (C) Tad E. Smith All rights reserved. 00008 // 00009 // This software is published under the terms of the Apache Software 00010 // License version 1.1, a copy of which has been included with this 00011 // distribution in the LICENSE.APL file. 00012 // 00013 00016 #ifndef _LOG4CPLUS_CONSOLE_APPENDER_HEADER_ 00017 #define _LOG4CPLUS_CONSOLE_APPENDER_HEADER_ 00018 00019 #include <log4cplus/config.h> 00020 #include <log4cplus/appender.h> 00021 00022 namespace log4cplus { 00028 class LOG4CPLUS_EXPORT ConsoleAppender : public Appender { 00029 public: 00030 // Ctors 00031 ConsoleAppender(bool logToStdErr = false, bool immediateFlush = false); 00032 ConsoleAppender(const log4cplus::helpers::Properties properties); 00033 00034 // Dtor 00035 ~ConsoleAppender(); 00036 00037 // Methods 00038 virtual void close(); 00039 00040 protected: 00041 virtual void append(const spi::InternalLoggingEvent& event); 00042 00043 // Data 00044 bool logToStdErr; 00049 bool immediateFlush; 00050 }; 00051 00052 } // end namespace log4cplus 00053 00054 #endif // _LOG4CPLUS_CONSOLE_APPENDER_HEADER_ 00055