24 #ifndef LOG4CPLUS_CONSOLE_APPENDER_HEADER_
25 #define LOG4CPLUS_CONSOLE_APPENDER_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
Extend this class for implementing your own strategies for printing log statements.
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.
bool immediateFlush
Immediate flush means that the underlying output stream will be flushed at the end of each append ope...
virtual void append(const spi::InternalLoggingEvent &event)
Subclasses of Appender should implement this method to perform actual logging.
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
std::unique_ptr< std::locale > locale
ConsoleAppender(const log4cplus::helpers::Properties &properties)
ConsoleAppender(bool logToStdErr=false, bool immediateFlush=false)
The internal representation of logging events.