18#ifndef _LOG4CXX_NT_EVENT_LOG_APPENDER_HEADER_
19#define _LOG4CXX_NT_EVENT_LOG_APPENDER_HEADER_
109 struct NTEventLogAppenderPrivate;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
Appends log events to NT EventLog.
Definition nteventlogappender.h:31
void setLog(const LogString &log)
void * HANDLE
Definition nteventlogappender.h:99
const LogString & getServer() const
static unsigned short getEventType(const spi::LoggingEventPtr &event)
const LogString & getLog() const
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
void setServer(const LogString &server)
void setOption(const LogString &option, const LogString &value) override
Set option to value.
bool requiresLayout() const override
The SocketAppender does not use a layout.
Definition nteventlogappender.h:75
void close() override
Release any resources allocated within the appender such as file handles, network connections,...
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:98
static unsigned short getEventCategory(const spi::LoggingEventPtr &event)
Definition propertysetter.h:27
Definition nteventlogappender.h:26
LOG4CXX_PTR_DEF(NTEventLogAppender)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition appender.h:32
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:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146