25 #ifndef LOG4CPLUS_WIN32CONSOLEAPPENDER_H
26 #define LOG4CPLUS_WIN32CONSOLEAPPENDER_H
30 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
34 #if defined(_WIN32) && defined (LOG4CPLUS_HAVE_WIN32_CONSOLE)
68 bool logToStdErr =
false,
unsigned int textColor = 0);
Extend this class for implementing your own strategies for printing log statements.
Prints events to Win32 console.
Win32ConsoleAppender(bool allocConsole=true, bool logToStdErr=false, unsigned int textColor=0)
void write_console(void *, tchar const *, std::size_t)
virtual void append(spi::InternalLoggingEvent const &)
Subclasses of Appender should implement this method to perform actual logging.
void write_handle(void *, tchar const *, std::size_t)
virtual ~Win32ConsoleAppender()
Win32ConsoleAppender(helpers::Properties const &properties)
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
The internal representation of logging events.