7#ifndef _LOG4CPP_NTEVENTLOGAPPENDER_HH
8#define _LOG4CPP_NTEVENTLOGAPPENDER_HH
18# define LOG4CPP_UNDEFINE_NOGDI
21# ifndef WIN32_LEAN_AND_MEAN
22# define WIN32_LEAN_AND_MEAN
23# define LOG4CPP_UNDEFINE_WIN32_LEAN_AND_MEAN
28# ifdef LOG4CPP_UNDEFINE_NOGDI
32# ifdef LOG4CPP_UNDEFINE_WIN32_LEAN_AND_MEAN
33# undef WIN32_LEAN_AND_MEAN
82 HKEY
regGetKey(TCHAR *subkey, DWORD *disposition);
84 void regSetDword(HKEY hkey, TCHAR *name, DWORD value);
101#error NTEventLoggAppender is not available on on Win32 platforms
#define LOG4CPP_EXPORT
Definition Export.hh:26
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
Extend this abstract class to create your own log layout format.
Definition Layout.hh:22
void regSetDword(HKEY hkey, TCHAR *name, DWORD value)
Definition NTEventLogAppender.cpp:120
virtual void open()
Definition NTEventLogAppender.cpp:30
virtual bool requiresLayout() const
The NTEventLogAppender does its own Layout.
Definition NTEventLogAppender.cpp:49
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
Definition NTEventLogAppender.cpp:36
WORD getType(Priority::Value priority)
Convert log4cpp Priority to an EventLog type.
Definition NTEventLogAppender.cpp:82
HKEY regGetKey(TCHAR *subkey, DWORD *disposition)
Definition NTEventLogAppender.cpp:108
virtual bool reopen()
Calls open() and close()
Definition NTEventLogAppender.cpp:43
virtual void setLayout(Layout *layout)
Set the Layout for this appender.
Definition NTEventLogAppender.cpp:53
NTEventLogAppender(const std::string &name, const std::string &sourceName)
Instantiate an NTEventLogAppender with given name and source.
Definition NTEventLogAppender.cpp:17
void regSetString(HKEY hkey, TCHAR *name, TCHAR *value)
Definition NTEventLogAppender.cpp:116
virtual void _append(const LoggingEvent &event)
Sends a LoggingEvent to NT Event log.
Definition NTEventLogAppender.cpp:57
HANDLE _hEventSource
Definition NTEventLogAppender.hh:95
void addRegistryInfo(const char *source)
Definition NTEventLogAppender.cpp:127
WORD getCategory(Priority::Value priority)
Convert log4cpp Priority to an EventLog category.
Definition NTEventLogAppender.cpp:72
std::string _strSourceName
Definition NTEventLogAppender.hh:96
int Value
The type of Priority Values.
Definition Priority.hh:85
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
The internal representation of logging events.
Definition LoggingEvent.hh:32