#include <Win32DebugAppender.hh>
Inheritance diagram for log4cpp::Win32DebugAppender:
Public Member Functions | |
Win32DebugAppender (const std::string &name) | |
Constructor. | |
virtual | ~Win32DebugAppender () |
Destructor. | |
virtual void | close () |
Close method. | |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Method that does the actual work. |
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. |
log4cpp::Win32DebugAppender::~Win32DebugAppender | ( | ) | [virtual] |
Destructor.
void log4cpp::Win32DebugAppender::close | ( | ) | [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.
void log4cpp::Win32DebugAppender::_append | ( | const LoggingEvent & | event | ) | [protected, virtual] |
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.