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-
void setLevel(
Level level
)
Set global logging level.
Parameters:
Updated on 2023-01-23 at 12:02:53 +0100