Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::logging Namespace Reference

Namespaces

namespace  sinks
 

Classes

class  LogBackgroundService
 Asynchronous background logging service executing on a dedicated C++20 std::jthread. Consumes/flushes log events or periodic status messages asynchronously without blocking the main event loop. More...
 
struct  LogEventT
 Zero-heap log event carrying fixed-size inline message buffer across MPSC event bus. More...
 
class  LoggerT
 Static compile-time logger wrapper managing severity level filtering and zero-heap string formatting. More...
 

Typedefs

using ConsoleLogger = LoggerT< sinks::ConsoleLogSink >
 Default Console Logger alias.
 
using FileLogger = LoggerT< sinks::FileLogSink >
 Default File Logger alias.
 
using LogEvent = LogEventT< 256 >
 Default LogEvent alias with 256-byte inline buffer.
 
using NullLogger = LoggerT< sinks::NullLogSink >
 Default Null Logger alias.
 

Enumerations

enum class  LogLevel : uint8_t {
  Trace = 0 , Debug , Info , Warn ,
  Error , Critical , Off
}
 Logging severity levels. More...
 

Functions

constexpr const char * logLevelToColor (LogLevel level) noexcept
 Get ANSI color escape code for LogLevel.
 
constexpr const char * logLevelToString (LogLevel level) noexcept
 Convert LogLevel enum to string representation.
 

Variables

constexpr const char * LOG_COLOR_RESET = "\033[0m"
 ANSI reset color escape code.
 

Typedef Documentation

◆ ConsoleLogger

Default Console Logger alias.

◆ FileLogger

Default File Logger alias.

◆ LogEvent

using corium::logging::LogEvent = typedef LogEventT<256>

Default LogEvent alias with 256-byte inline buffer.

◆ NullLogger

Default Null Logger alias.

Enumeration Type Documentation

◆ LogLevel

enum class corium::logging::LogLevel : uint8_t
strong

Logging severity levels.

Enumerator
Trace 
Debug 
Info 
Warn 
Error 
Critical 
Off 

Function Documentation

◆ logLevelToColor()

constexpr const char * corium::logging::logLevelToColor ( LogLevel  level)
constexprnoexcept

Get ANSI color escape code for LogLevel.

+ Here is the caller graph for this function:

◆ logLevelToString()

constexpr const char * corium::logging::logLevelToString ( LogLevel  level)
constexprnoexcept

Convert LogLevel enum to string representation.

+ Here is the caller graph for this function:

Variable Documentation

◆ LOG_COLOR_RESET

constexpr const char* corium::logging::LOG_COLOR_RESET = "\033[0m"
constexpr

ANSI reset color escape code.