|
log4cpp
1.1
|
NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log. More...
#include <NTEventLogAppender.hh>


Public Member Functions | |
| NTEventLogAppender (const std::string &name, const std::string &sourceName) | |
| Instantiate an NTEventLogAppender with given name and source. More... | |
| virtual | ~NTEventLogAppender () |
| virtual bool | reopen () |
| Calls open() and close() More... | |
| virtual void | close () |
| Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
| virtual bool | requiresLayout () const |
| The NTEventLogAppender does its own Layout. More... | |
| virtual void | setLayout (Layout *layout) |
| Set the Layout for this appender. More... | |
Public Member Functions inherited from log4cpp::AppenderSkeleton | |
| virtual | ~AppenderSkeleton () |
| Destructor for AppenderSkeleton. More... | |
| virtual void | doAppend (const LoggingEvent &event) |
| Log in Appender specific way. More... | |
| virtual void | setThreshold (Priority::Value priority) |
| Set the threshold priority of this Appender. More... | |
| virtual Priority::Value | getThreshold () |
| Get the threshold priority of this Appender. More... | |
| virtual void | setFilter (Filter *filter) |
| Set a Filter for this appender. More... | |
| virtual Filter * | getFilter () |
| Get the Filter for this appender. More... | |
Public Member Functions inherited from log4cpp::Appender | |
| virtual | ~Appender () |
| Destructor for Appender. More... | |
| const std::string & | getName () const |
| Get the name of this appender. More... | |
Protected Member Functions | |
| WORD | getCategory (Priority::Value priority) |
| Convert log4cpp Priority to an EventLog category. More... | |
| WORD | getType (Priority::Value priority) |
| Convert log4cpp Priority to an EventLog type. More... | |
| HKEY | regGetKey (TCHAR *subkey, DWORD *disposition) |
| void | regSetString (HKEY hkey, TCHAR *name, TCHAR *value) |
| void | regSetDword (HKEY hkey, TCHAR *name, DWORD value) |
| void | addRegistryInfo (const char *source) |
| virtual void | open () |
| virtual void | _append (const LoggingEvent &event) |
| Sends a LoggingEvent to NT Event log. More... | |
Protected Member Functions inherited from log4cpp::AppenderSkeleton | |
| AppenderSkeleton (const std::string &name) | |
| Constructor for AppenderSkeleton. More... | |
Protected Member Functions inherited from log4cpp::Appender | |
| Appender (const std::string &name) | |
| Constructor for Appender. More... | |
Protected Attributes | |
| HANDLE | _hEventSource |
| std::string | _strSourceName |
Additional Inherited Members | |
Static Public Member Functions inherited from log4cpp::Appender | |
| static Appender * | getAppender (const std::string &name) |
| Get a pointer to an exitsing Appender. More... | |
| static bool | reopenAll () |
| Call reopen() on all existing Appenders. More... | |
| static void | closeAll () |
| Call reopen() on all existing Appenders. More... | |
NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log.
Building log4cpp.dsp/log4cppDLL.dsp creates the resource DLL NTEventLogAppender.dll. Do not forget to place this DLL in a directory that is on the PATH of the Windows system. Otherwise, the category and message will not display correctly in Event Viewer.
NB: This class is only available on Win32 platforms.
| log4cpp::NTEventLogAppender::NTEventLogAppender | ( | const std::string & | name, |
| const std::string & | sourceName | ||
| ) |
Instantiate an NTEventLogAppender with given name and source.
| name | The name of the Appender |
| sourceName | The source name to log |
|
virtual |
|
protectedvirtual |
Sends a LoggingEvent to NT Event log.
| event | the LoggingEvent to log. |
Implements log4cpp::AppenderSkeleton.
|
protected |
|
virtual |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::AppenderSkeleton.
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
virtual |
Reimplemented from log4cpp::AppenderSkeleton.
|
virtual |
|
virtual |
Set the Layout for this appender.
| layout | The layout to use. |
Implements log4cpp::AppenderSkeleton.
|
protected |
|
protected |
1.8.10