|
enum | Level { LEVEL_DEBUG = 0
, LEVEL_INFO = 1
, LEVEL_WARN = 2
, LEVEL_ERROR = 3
} |
|
|
virtual bool | isEnabled (Level level)=0 |
|
virtual void | log (Level level, int line, const std::string &message)=0 |
|
◆ isEnabled()
virtual bool pulsar::Logger::isEnabled |
( |
Level |
level | ) |
|
|
pure virtual |
Check whether the log level is enabled
- Parameters
-
- Returns
- true if log is enabled
◆ log()
virtual void pulsar::Logger::log |
( |
Level |
level, |
|
|
int |
line, |
|
|
const std::string & |
message |
|
) |
| |
|
pure virtual |
Log the message with related metadata
- Parameters
-
level | the Logger::Level |
line | the line number of this log |
message | the message to log |
The documentation for this class was generated from the following file: