A namespace for logging utilities.
Name | |
---|---|
enum class | Level { kTrace, kDebug, kInfo, kWarning, kError, kCritical, kOff} Log levels. |
Name | |
---|---|
void | init(const std::string & name) Initialize logging. |
void | setLevel(Level level) Set global logging level. |
Enumerator | Value | Description |
---|---|---|
kTrace | ||
kDebug | ||
kInfo | ||
kWarning | ||
kError | ||
kCritical | ||
kOff |
Log levels.
void init(
const std::string & name
)
Initialize logging.
Parameters:
By default two sinks are created. The first sink writes messages to the console. The second sink attempts to create a log file in the path set by the environment variable ACL_LOG_PATH (’/tmp’ if unset). The name of the log file is ’name.log’. The default logging level is ‘info’ (‘debug’ for debug builds) and can be changed by setting the ACL_LOG_LEVEL environment variable.
void setLevel(
Level level
)
Set global logging level.
Parameters:
Updated on 2022-06-22 at 16:53:25 +0200