#include </home/runner/work/metall/metall/include/metall/logger.hpp>
◆ level
Log message level.
Enumerator |
---|
critical | Critical logger message — with default logger implementation abort the execution unless disabled.
|
error | Error logger message.
|
warning | Warning logger message.
|
info | Info logger message.
|
debug | Debug logger message.
|
verbose | Verbose (lowest priority) logger message.
|
◆ logger() [1/3]
metall::logger::logger |
( |
| ) |
|
|
delete |
◆ ~logger()
metall::logger::~logger |
( |
| ) |
|
|
delete |
◆ logger() [2/3]
metall::logger::logger |
( |
const logger & |
| ) |
|
|
delete |
◆ logger() [3/3]
metall::logger::logger |
( |
logger && |
| ) |
|
|
delete |
◆ out()
static void metall::logger::out |
( |
const level |
lvl, |
|
|
const char *const |
file_name, |
|
|
const int |
line_no, |
|
|
const char *const |
message |
|
) |
| |
|
inlinestaticnoexcept |
◆ perror()
static void metall::logger::perror |
( |
const level |
lvl, |
|
|
const char *const |
file_name, |
|
|
const int |
line_no, |
|
|
const char *const |
message |
|
) |
| |
|
inlinestaticnoexcept |
Log a message about errno.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ log_level()
- Returns
- the current minimum logger level
◆ set_log_level()
static void metall::logger::set_log_level |
( |
const level_filter |
lvl | ) |
|
|
inlinestaticnoexcept |
Set the minimum logger level to show message.
- Examples
- logger.cpp.
◆ abort_on_critical_error() [1/2]
static bool metall::logger::abort_on_critical_error |
( |
| ) |
|
|
inlinestaticnoexcept |
- Returns
- if the program should abort when a critical message is logged
- Examples
- logger.cpp.
◆ abort_on_critical_error() [2/2]
static void metall::logger::abort_on_critical_error |
( |
const bool |
enable | ) |
|
|
inlinestaticnoexcept |
If true is specified, enable an abort at a critical logger message.
The documentation for this class was generated from the following file:
- /home/runner/work/metall/metall/include/metall/logger.hpp