Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
log_level.h File Reference

Logging severity levels for the thread system. More...

#include <cstdint>
#include <string_view>
Include dependency graph for log_level.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 

Enumerations

enum class  kcenon::thread::log_level_v2 : uint8_t {
  kcenon::thread::trace = 0 , kcenon::thread::debug = 1 , kcenon::thread::info = 2 , kcenon::thread::warn = 3 ,
  kcenon::thread::error = 4 , kcenon::thread::critical = 5 , kcenon::thread::off = 6
}
 Logging severity levels with explicit ascending values. More...
 

Functions

constexpr std::string_view kcenon::thread::to_string (log_level_v2 level) noexcept
 Convert log_level_v2 to string representation.
 
constexpr bool kcenon::thread::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.
 
log_level_v2 kcenon::thread::parse_log_level (std::string_view str) noexcept
 Parse string to log_level_v2.
 

Detailed Description

Logging severity levels for the thread system.

Definition in file log_level.h.