18#ifndef _LOG4CXX_NT_EVENT_LOG_APPENDER_HEADER_
19#define _LOG4CXX_NT_EVENT_LOG_APPENDER_HEADER_
45 void activateOptions(helpers::Pool& p) override;
46 void close() override;
54 bool requiresLayout()
const override
88 struct NTEventLogAppenderPrivate;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
Appends log events to NT EventLog.
Definition: nteventlogappender.h:31
void setLog(const LogString &log)
void * HANDLE
Definition: nteventlogappender.h:78
const LogString & getServer() const
static unsigned short getEventType(const spi::LoggingEventPtr &event)
const LogString & getLog() const
void setServer(const LogString &server)
static LogString getErrorString(const LogString &function)
const LogString & getSource() const
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
void setSource(const LogString &source)
void SID
Definition: nteventlogappender.h:77
static unsigned short getEventCategory(const spi::LoggingEventPtr &event)
LOG4CXX_PTR_DEF(NTEventLogAppender)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:42
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145