log4cplus
1.1.0
|
Appends log events to NT EventLog. More...
#include <nteventlogappender.h>
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 |
Appends log events to NT EventLog.
Definition at line 43 of file nteventlogappender.h.
log4cplus::NTEventLogAppender::NTEventLogAppender | ( | const log4cplus::tstring & | server, |
const log4cplus::tstring & | log, | ||
const log4cplus::tstring & | source | ||
) |
log4cplus::NTEventLogAppender::NTEventLogAppender | ( | const log4cplus::helpers::Properties & | properties | ) |
virtual log4cplus::NTEventLogAppender::~NTEventLogAppender | ( | ) | [virtual] |
void log4cplus::NTEventLogAppender::addRegistryInfo | ( | ) | [protected] |
virtual void log4cplus::NTEventLogAppender::append | ( | const spi::InternalLoggingEvent & | event | ) | [protected, virtual] |
Subclasses of Appender
should implement this method to perform actual logging.
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] |
void log4cplus::NTEventLogAppender::init | ( | ) | [protected] |
HANDLE log4cplus::NTEventLogAppender::hEventLog [protected] |
Definition at line 72 of file nteventlogappender.h.
log4cplus::tstring log4cplus::NTEventLogAppender::log [protected] |
Definition at line 70 of file nteventlogappender.h.
SID* log4cplus::NTEventLogAppender::pCurrentUserSID [protected] |
Definition at line 73 of file nteventlogappender.h.
Definition at line 69 of file nteventlogappender.h.
Definition at line 71 of file nteventlogappender.h.