UtiLite
0.3.1
A lite utilities library
|
#include <ULogger.h>
Inherits UEvent.
Public Member Functions | |
ULogEvent (const std::string &msg, int level) | |
const std::string & | getMsg () const |
virtual std::string | getClassName () const |
This class is used by the ULogger to send logged messages like events. Messages with level over the event level set in ULogger::setEventLevel() are sent like ULogEvent with the message and its level. The default event level of ULogger is kFatal (see ULogger::Level).
ULogEvent::ULogEvent | ( | const std::string & | msg, |
int | level | ||
) | [inline] |
ULogEvent constructor. Note that to retrieve the message level, use UEvent::getCode().
msg | the message already formatted to a full string. |
level | the severity of the message, |
virtual std::string ULogEvent::getClassName | ( | ) | const [inline, virtual] |
Implements UEvent.
const std::string& ULogEvent::getMsg | ( | ) | const [inline] |
Get the message from the event.