The system event log. More...
#include <SystemLog.h++>
Public Types | |
| enum | LogSeverity { LogInfo, LogWarning, LogError } |
System logging severity. More... | |
Public Member Functions | |
| SystemLog () throw () | |
| Construct a new SystemLog. | |
| ~SystemLog () throw () | |
| Destructor. | |
| void | open () throw () |
| Open the log. | |
| void | close () throw () |
| Close the log. | |
| void | logMessage (LogSeverity severity, const char *msg, va_list args) throw () |
| Log a message. | |
| void | logMessage (LogSeverity severity, const char *msg,...) throw () |
| Log a message. | |
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 | ( | ) | throw () |
Destructor.
| void close | ( | ) | throw () |
Close the log.
| void logMessage | ( | LogSeverity | severity, | |
| const char * | msg, | |||
| ... | ||||
| ) | throw () |
Log a message.
| severity | The message severity. | |
| msg | The message. | |
| ... | Optional message arguments. |
| void logMessage | ( | LogSeverity | severity, | |
| const char * | msg, | |||
| va_list | args | |||
| ) | throw () |
Log a message.
| severity | The message severity. | |
| msg | The message. | |
| args | Optional message arguments. |
| void open | ( | ) | throw () |
Open the log.
1.6.3