LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
logit::ConsoleLogger::Config Struct Reference

Configuration for the console logger. More...

#include <ConsoleLogger.hpp>

Public Attributes

TextColor default_color = LOGIT_DEFAULT_COLOR
 Default text color for console output.
 
bool async = true
 Flag indicating whether logging should be asynchronous.
 
bool use_dedicated_executor = false
 Use a dedicated executor instead of the global TaskExecutor; native builds create one worker thread per logger.
 
std::size_t queue_capacity = 0
 Maximum queue size for the dedicated executor (0 = unlimited).
 
QueuePolicy queue_policy = QueuePolicy::Block
 Overflow policy for the dedicated executor.
 
std::vector< ConsoleStreamRoute > routes
 Optional level-based stream routing.
 

Detailed Description

Configuration for the console logger.

Definition at line 77 of file ConsoleLogger.hpp.

Member Data Documentation

◆ async

bool logit::ConsoleLogger::Config::async = true

Flag indicating whether logging should be asynchronous.

Definition at line 82 of file ConsoleLogger.hpp.

◆ default_color

TextColor logit::ConsoleLogger::Config::default_color = LOGIT_DEFAULT_COLOR

Default text color for console output.

Definition at line 78 of file ConsoleLogger.hpp.

◆ queue_capacity

std::size_t logit::ConsoleLogger::Config::queue_capacity = 0

Maximum queue size for the dedicated executor (0 = unlimited).

Definition at line 85 of file ConsoleLogger.hpp.

◆ queue_policy

QueuePolicy logit::ConsoleLogger::Config::queue_policy = QueuePolicy::Block

Overflow policy for the dedicated executor.

Definition at line 86 of file ConsoleLogger.hpp.

◆ routes

std::vector<ConsoleStreamRoute> logit::ConsoleLogger::Config::routes

Optional level-based stream routing.

When non-empty, the first matching route (inclusive range [min_level, max_level]) wins. Falls back to the primary stream when no route matches. Empty by default, preserving the historical single-stream behavior.

Definition at line 91 of file ConsoleLogger.hpp.

◆ use_dedicated_executor

bool logit::ConsoleLogger::Config::use_dedicated_executor = false

Use a dedicated executor instead of the global TaskExecutor; native builds create one worker thread per logger.

Definition at line 84 of file ConsoleLogger.hpp.


The documentation for this struct was generated from the following file: