From: Václav H. <v.h...@sh...> - 2009-12-07 19:10:17
|
Attila Odry wrote, On 7.12.2009 14:53: > Hi > > > > I would like to set up a logger to send message into system log, using the > NTEventLogAppender. > > > > NTEventLogAppender(const log4cplus::tstring& server, > > const log4cplus::tstring& log, > > const log4cplus::tstring& source); > > > > I can’t found any documentation (or test) for this one. Could someone > explain to me what those paramters for in ctor? > > Regarding to log4, the source should be the source showed in event log, > but what about the rest? As far as I can tell, server and source are used for first RegisterEventSource() parameter. Log parameter is the log like "Application", "Security", "System". Log and source parameters are used to set up some registry keys under "SYSTEM\\CurrentControlSet\\Services\\EventLog". I do not know much about Windows event log myself either, I am afraid I cannot help you with this much. -- VH |