log4cpp 1.1
|
Win32DebugAppender simply sends the log message to the default system debugger on Win32 systems. More...
#include <Win32DebugAppender.hh>
Public Member Functions | |
Win32DebugAppender (const std::string &name) | |
Constructor. | |
virtual | ~Win32DebugAppender () |
Destructor. | |
virtual void | close () |
Close method. | |
![]() | |
LayoutAppender (const std::string &name) | |
virtual | ~LayoutAppender () |
virtual bool | requiresLayout () const |
Check if the appender requires a layout. | |
virtual void | setLayout (Layout *layout=NULL) |
Set the Layout for this appender. | |
![]() | |
virtual | ~AppenderSkeleton () |
Destructor for AppenderSkeleton. | |
virtual void | doAppend (const LoggingEvent &event) |
Log in Appender specific way. | |
virtual bool | reopen () |
Reopens the output destination of this Appender, e.g. | |
virtual void | setThreshold (Priority::Value priority) |
Set the threshold priority of this Appender. | |
virtual Priority::Value | getThreshold () |
Get the threshold priority of this Appender. | |
virtual void | setFilter (Filter *filter) |
Set a Filter for this appender. | |
virtual Filter * | getFilter () |
Get the Filter for this appender. | |
![]() | |
virtual | ~Appender () |
Destructor for Appender. | |
const std::string & | getName () const |
Get the name of this appender. | |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Method that does the actual work. | |
![]() | |
Layout & | _getLayout () |
Return the layout of the appender. | |
![]() | |
AppenderSkeleton (const std::string &name) | |
Constructor for AppenderSkeleton. | |
![]() | |
Appender (const std::string &name) | |
Constructor for Appender. | |
Additional Inherited Members | |
![]() | |
typedef BasicLayout | DefaultLayoutType |
![]() | |
static Appender * | getAppender (const std::string &name) |
Get a pointer to an exitsing Appender. | |
static bool | reopenAll () |
Call reopen() on all existing Appenders. | |
static void | closeAll () |
Call reopen() on all existing Appenders. | |
Win32DebugAppender simply sends the log message to the default system debugger on Win32 systems.
This is useful for users of MSVC and Borland because the log messages will show up in the debugger window.
NB: This class is only available on Win32 platforms.
log4cpp::Win32DebugAppender::Win32DebugAppender | ( | const std::string & | name | ) |
Constructor.
name | Name used by the base classes only. |
|
virtual |
Destructor.
|
protectedvirtual |
Method that does the actual work.
In this case, it simply sets up the layout and calls the OutputDebugString API.
event | Event for which we are logging. |
Implements log4cpp::AppenderSkeleton.
|
virtual |
Close method.
This is called by the framework, but there is nothing to do for the OutputDebugString API, so it simply returns.
Implements log4cpp::AppenderSkeleton.