 |
log4cplus
2.0.5
|
Go to the documentation of this file.
24 #ifndef LOG4CPLUS_CONSOLE_APPENDER_HEADER_
25 #define LOG4CPLUS_CONSOLE_APPENDER_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
84 #endif // LOG4CPLUS_CONSOLE_APPENDER_HEADER_
virtual void append(const spi::InternalLoggingEvent &event)
Subclasses of Appender should implement this method to perform actual logging.
ConsoleAppender(bool logToStdErr=false, bool immediateFlush=false)
bool immediateFlush
Immediate flush means that the underlying output stream will be flushed at the end of each append ope...
The internal representation of logging events.
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
ConsoleAppender(const log4cplus::helpers::Properties &properties)
ConsoleAppender appends log events to std::cout or std::cerr using a layout specified by the user.
static log4cplus::thread::Mutex const & getOutputMutex()
This mutex is used by ConsoleAppender and helpers::LogLog classes to synchronize output to console.
Extend this class for implementing your own strategies for printing log statements.