log4cplus_NTEventLogAppender(3)

log4cplus::NTEventLogAppender(3) log4cplus log4cplus::NTEventLogAppender(3)

NAME

log4cplus::NTEventLogAppender - Appends log events to NT EventLog.

SYNOPSIS

#include <nteventlogappender.h>

Inherits log4cplus::Appender.

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

Additional Inherited Members

Detailed Description

Appends log events to NT EventLog.

Definition at line 43 of file nteventlogappender.h.

Constructor & Destructor Documentation

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]

Member Function Documentation

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.

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]

void log4cplus::NTEventLogAppender::init () [protected]

Member Data Documentation

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.

log4cplus::tstring log4cplus::NTEventLogAppender::server [protected]

Definition at line 69 of file nteventlogappender.h.

log4cplus::tstring log4cplus::NTEventLogAppender::source [protected]

Definition at line 71 of file nteventlogappender.h.

Author

Generated automatically by Doxygen for log4cplus from the source code.

Fri Jun 18 2021 Version 2.0.6