bref
API 2014 of the Zia HTTP server.
|
Bref API logger interface. More...
#include <ILogger.h>
Public Types | |
enum | Severity { Debug, Info, Warning, Error, Fatal } |
Logger severities. More... | |
Public Member Functions | |
virtual | ~ILogger () |
Virtual destructor. | |
virtual Severity | severity () const =0 |
Return the severity of the logger. | |
virtual void | setSeverity (Severity newSeverity)=0 |
Set the logger severity. | |
virtual void | log (Severity severity, const std::string &message)=0 |
Log a message with a given severity. |
Bref API logger interface.
General interface for the logging in modules and the server more generally.
virtual void bref::ILogger::log | ( | Severity | severity, |
const std::string & | message | ||
) | [pure virtual] |
Log a message with a given severity.
severity
(the message severity) is superior or equal to severity() (the logger severity).severity | The severity of the message. |
message | The message (string) to log. |
virtual void bref::ILogger::setSeverity | ( | Severity | newSeverity | ) | [pure virtual] |
Set the logger severity.
[in] | newSeverity | The new severity for the logger. |
virtual Severity bref::ILogger::severity | ( | ) | const [pure virtual] |