7 #ifndef _LOG4SHIB_NTEVENTLOGAPPENDER_HH
8 #define _LOG4SHIB_NTEVENTLOGAPPENDER_HH
10 #ifdef WIN32 // only available on Win32
17 # define NOGDI // this will circumvent the ERROR #define in windows.h
18 # define LOG4SHIB_UNDEFINE_NOGDI
21 # ifndef WIN32_LEAN_AND_MEAN
22 # define WIN32_LEAN_AND_MEAN
23 # define LOG4SHIB_UNDEFINE_WIN32_LEAN_AND_MEAN
28 # ifdef LOG4SHIB_UNDEFINE_NOGDI
32 # ifdef LOG4SHIB_UNDEFINE_WIN32_LEAN_AND_MEAN
33 # undef WIN32_LEAN_AND_MEAN
36 #endif // done dealing with ERROR #define
66 virtual bool reopen();
74 HKEY regGetKey(TCHAR *subkey, DWORD *disposition);
75 void regSetString(HKEY hkey,
const TCHAR *name,
const TCHAR *value);
76 void regSetDword(HKEY hkey,
const TCHAR *name, DWORD value);
77 void addRegistryInfo(
const char *source);
93 #error NTEventLoggAppender is not available on on Win32 platforms
96 #endif // _LOG4SHIB_NTEVENTLOGAPPENDER_HH
NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log.
Definition: NTEventLogAppender.hh:52
The internal representation of logging events.
Definition: LoggingEvent.hh:32
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition: LayoutAppender.hh:24
HANDLE _hEventSource
Definition: NTEventLogAppender.hh:87
#define LOG4SHIB_EXPORT
Definition: Export.hh:11
int Value
The type of Priority Values.
Definition: Priority.hh:84
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
std::string _strSourceName
Definition: NTEventLogAppender.hh:88