Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
nevelex_util::Logger Class Reference#include <Logger.h>
Inheritance diagram for nevelex_util::Logger:
[legend]List of all members.
Detailed Description
Interface used as an abstraction for generating log entries. -
Author:
-
Michel Dalal
Member Enumeration Documentation
|
enum nevelex_util::Logger::LOGGING_LEVELS
|
|
|
|
Various logging levels taken from syslog (3) man page. Due to an MS VC++ issue, unable to use static const memeber variables in a case statement. (C2051) -
Enumeration values:
-
| LOGGER_DEBUG
|
debug-level message. |
| LOGGER_INFO
|
informational message. |
| LOGGER_NOTICE
|
normal, but significant, condition. |
| LOGGER_WARNING
|
warning conditions. |
| LOGGER_ERROR
|
error conditions. |
| LOGGER_CRITICAL
|
critical conditions. |
| LOGGER_ALERT
|
action must be taken immediately. |
| LOGGER_EMERGENCY
|
system is unusable. |
|
Constructor & Destructor Documentation
|
nevelex_util::Logger::~Logger (
|
) [virtual]
|
|
|
|
Default destructor. Does nothing. |
Member Function Documentation
|
void nevelex_util::Logger::log (
|
LOGGING_LEVELS level,
|
|
char * format,
|
|
... ) [pure virtual]
|
|
|
|
Add a log entry -
Parameters:
-
| level
|
one of the enumeration values supplied in LOGGING_LEVELS enumeration. |
| format
|
a formatting string like that used by printf. |
| ...
|
any arguments needed by the format string. |
Reimplemented in nevelex_util::SyslogLogger. |
The documentation for this class was generated from the following files:
|
 |