libcommonc++
0.7
|
The system event log. More...
#include <SystemLog.h++>
Public Types | |
enum | LogSeverity { LogInfo, LogWarning, LogError } |
System logging severity. More... | |
Public Member Functions | |
SystemLog () | |
Construct a new SystemLog. More... | |
~SystemLog () | |
Destructor. More... | |
void | open () |
Open the log. More... | |
void | close () |
Close the log. More... | |
void | logMessage (LogSeverity severity, const char *msg, va_list args) |
Log a message. More... | |
void | logMessage (LogSeverity severity, const char *msg,...) |
Log a message. More... | |
The system event log.
This class logs events to syslog on POSIX systems and to the Windows event log on Windows systems. This class is implicitly a singleton.
enum LogSeverity |
~SystemLog | ( | ) |
Destructor.
void close | ( | ) |
Close the log.
void logMessage | ( | LogSeverity | severity, |
const char * | msg, | ||
va_list | args | ||
) |
Log a message.
severity | The message severity. |
msg | The message. |
args | Optional message arguments. |
void logMessage | ( | LogSeverity | severity, |
const char * | msg, | ||
... | |||
) |
Log a message.
severity | The message severity. |
msg | The message. |
... | Optional message arguments. |
void open | ( | ) |
Open the log.