Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

log4cpp::Win32DebugAppender Class Reference

Win32DebugAppender simply sends the log message to the default system debugger on Win32 systems. More...

#include <Win32DebugAppender.hh>

Inheritance diagram for log4cpp::Win32DebugAppender:

Inheritance graph
[legend]
Collaboration diagram for log4cpp::Win32DebugAppender:

Collaboration graph
[legend]
List of all members.

Public Methods

 Win32DebugAppender (const std::string &name)
 Constructor. More...

virtual ~Win32DebugAppender ()
 Destructor. More...

virtual void close ()
 Close method. More...


Protected Methods

virtual void _append (const LoggingEvent &event)
 Method that does the actual work. More...


Detailed Description

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.


Constructor & Destructor Documentation

log4cpp::Win32DebugAppender::Win32DebugAppender const std::string &    name
 

Constructor.

Parameters:
name  Name used by the base classes only.

log4cpp::Win32DebugAppender::~Win32DebugAppender   [virtual]
 

Destructor.


Member Function Documentation

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.

Parameters:
event  Event for which we are logging.

Implements log4cpp::AppenderSkeleton.

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.


The documentation for this class was generated from the following files:
Generated on Mon Oct 28 23:42:16 2002 for log4cpp by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002