log4cplus  1.1.0
Public Member Functions | Protected Member Functions | Protected Attributes
log4cplus::NTEventLogAppender Class Reference

Appends log events to NT EventLog. More...

#include <nteventlogappender.h>

Inheritance diagram for log4cplus::NTEventLogAppender:
[legend]
Collaboration diagram for log4cplus::NTEventLogAppender:
[legend]

List of all members.

Public Member Functions

 NTEventLogAppender (const log4cplus::tstring &server, const log4cplus::tstring &log, const log4cplus::tstring &source)
 NTEventLogAppender (const log4cplus::helpers::Properties &properties)
virtual ~NTEventLogAppender ()
virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc.

Protected Member Functions

virtual void append (const spi::InternalLoggingEvent &event)
 Subclasses of Appender should implement this method to perform actual logging.
virtual WORD getEventType (const spi::InternalLoggingEvent &event)
virtual WORD getEventCategory (const spi::InternalLoggingEvent &event)
void init ()
void addRegistryInfo ()

Protected Attributes

log4cplus::tstring server
log4cplus::tstring log
log4cplus::tstring source
HANDLE hEventLog
SID * pCurrentUserSID

Detailed Description

Appends log events to NT EventLog.

Definition at line 43 of file nteventlogappender.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual void log4cplus::NTEventLogAppender::append ( const spi::InternalLoggingEvent event) [protected, virtual]

Subclasses of Appender should implement this method to perform actual logging.

See also:
doAppend method.

Implements log4cplus::Appender.

virtual void log4cplus::NTEventLogAppender::close ( ) [virtual]

Release any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

Implements log4cplus::Appender.

virtual WORD log4cplus::NTEventLogAppender::getEventCategory ( const spi::InternalLoggingEvent event) [protected, virtual]
virtual WORD log4cplus::NTEventLogAppender::getEventType ( const spi::InternalLoggingEvent event) [protected, virtual]

Member Data Documentation

Definition at line 72 of file nteventlogappender.h.

Definition at line 70 of file nteventlogappender.h.

Definition at line 73 of file nteventlogappender.h.

Definition at line 69 of file nteventlogappender.h.

Definition at line 71 of file nteventlogappender.h.


The documentation for this class was generated from the following file: