C++ library for handling logging. More...
Classes | |
class | logger::LogBackend |
Abstract class for logger backends. More... | |
Macros | |
#define | LOGS(MSG) |
Automatically create LoggerScope object which logs at the construction and destruction. More... | |
#define | LOG(SEVERITY, MESSAGE) |
Generic logging macro. More... | |
#define | LOGE(MESSAGE) LOG(ERROR, MESSAGE) |
Logging errors. More... | |
#define | LOGW(MESSAGE) LOG(WARN, MESSAGE) |
Logging warnings. More... | |
#define | LOGI(MESSAGE) LOG(INFO, MESSAGE) |
Logging information. More... | |
#define | LOGD(MESSAGE) LOG(DEBUG, MESSAGE) |
Logging debug information. More... | |
#define | LOGH(MESSAGE) LOG(HELP, MESSAGE) |
Logging helper information (for debugging purposes) More... | |
#define | LOGT(MESSAGE) LOG(TRACE, MESSAGE) |
Logging tracing information. More... | |
Enumerations | |
enum | logger::LogLevel : int { logger::LogLevel::TRACE, logger::LogLevel::DEBUG, logger::LogLevel::INFO, logger::LogLevel::WARN, logger::LogLevel::ERROR, logger::LogLevel::HELP } |
Available log levels. More... | |
C++ library for handling logging.
There are few backends implemented and it's possible to create your own by inheriting after the logger::LogBackend interface.
Example usage:
#define LOG | ( | SEVERITY, | |
MESSAGE | |||
) |
Generic logging macro.
#define LOGD | ( | MESSAGE | ) | LOG(DEBUG, MESSAGE) |
Logging debug information.
#define LOGE | ( | MESSAGE | ) | LOG(ERROR, MESSAGE) |
Logging errors.
#define LOGH | ( | MESSAGE | ) | LOG(HELP, MESSAGE) |
Logging helper information (for debugging purposes)
#define LOGI | ( | MESSAGE | ) | LOG(INFO, MESSAGE) |
Logging information.
#define LOGS | ( | MSG | ) |
Automatically create LoggerScope object which logs at the construction and destruction.
#define LOGT | ( | MESSAGE | ) | LOG(TRACE, MESSAGE) |
Logging tracing information.
#define LOGW | ( | MESSAGE | ) | LOG(WARN, MESSAGE) |
Logging warnings.
|
strong |