ClikaRT::logging
namespace
Classes
| Name | Description |
|---|---|
Logger | A handle to a logging channel. Copyable and cheap (shares the channel). All methods take an already-formatted message; use the CLIKART_LOG_* macros (or std::format) to build it; should_log lets a caller skip formatting work when the level is disabled. |
Enumerations
enum LogLevel
enum class LogLevel
Severity levels, low to high. Off disables the channel. Ordered Trace < Debug < Info < Warn < Error; a channel emits at or above its threshold.
| Enumerator | Description |
|---|---|
Trace | |
Debug | |
Info | |
Warn | |
Error | |
Off |
Declared in ClikaRT/logging/logging.h, line 41
Functions
logger()
Logger logger()
The default ClikaRT logger (channel "ClikaRT").
Declared in ClikaRT/logging/logging.h, line 50
get_logger()
Logger get_logger(std::string_view name)
Get or create a named logger channel. An empty name yields the default. The name is copied (it backs the channel + registry key), so a temporary view is fine.
Declared in ClikaRT/logging/logging.h, line 54