49 default:
return "UNKNOWN";
69 return static_cast<uint8_t
>(message_level) >=
static_cast<uint8_t
>(min_level);
79 if (str ==
"warn" || str ==
"WARN" || str ==
"warning" || str ==
"WARNING")
82 if (str ==
"critical" || str ==
"CRITICAL" || str ==
"fatal" || str ==
"FATAL")
Represents an error in the thread system.
@ critical
At or above max_size, queue is full.
Core threading foundation of the thread system library.
log_level_v2 parse_log_level(std::string_view str) noexcept
Parse string to log_level_v2.
log_level_v2
Logging severity levels with explicit ascending values.
@ trace
Finest-grained informational events.
@ warn
Potentially harmful situations.
@ off
Special level to disable logging.
@ critical
Severe error events that lead to termination.
@ debug
Fine-grained informational events for debugging.
@ info
Informational messages highlighting progress.
@ error
Error events that might still allow continuation.
constexpr std::string_view to_string(log_level_v2 level) noexcept
Convert log_level_v2 to string representation.
constexpr bool should_log(log_level_v2 message_level, log_level_v2 min_level) noexcept
Check if a log level should be logged given a minimum level.