7 #ifndef _LOG4CPP_NTEVENTLOGAPPENDER_HH 8 #define _LOG4CPP_NTEVENTLOGAPPENDER_HH 10 #ifdef WIN32 // only available on Win32 17 # define NOGDI // this will circumvent the ERROR #define in windows.h 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 36 #endif // done dealing with ERROR #define 66 virtual bool reopen();
74 virtual bool requiresLayout()
const;
76 virtual void setLayout(
Layout* layout);
82 HKEY regGetKey(TCHAR *subkey, DWORD *disposition);
83 void regSetString(HKEY hkey, TCHAR *name, TCHAR *value);
84 void regSetDword(HKEY hkey, TCHAR *name, DWORD value);
85 void addRegistryInfo(
const char *source);
101 #error NTEventLoggAppender is not available on on Win32 platforms 104 #endif // _LOG4CPP_NTEVENTLOGAPPENDER_HH
std::string _strSourceName
Definition: NTEventLogAppender.hh:96
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of...
Definition: AppenderSkeleton.hh:24
HANDLE _hEventSource
Definition: NTEventLogAppender.hh:95
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
#define LOG4CPP_EXPORT
Definition: Export.hh:19
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
int Value
The type of Priority Values.
Definition: Priority.hh:85
NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log.
Definition: NTEventLogAppender.hh:52