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

Configuration for the unique file logger. More...

#include <UniqueFileLogger.hpp>

Public Attributes

std::string directory = "unique_logs"
 Directory where log files are stored.
 
bool async = true
 Flag indicating whether logging should be asynchronous.
 
int auto_delete_days = 30
 Number of days after which old log files are deleted.
 
size_t hash_length = 8
 Length of the hash used in filenames.
 
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.
 

Detailed Description

Configuration for the unique file logger.

Definition at line 84 of file UniqueFileLogger.hpp.

Member Data Documentation

◆ async

bool logit::UniqueFileLogger::Config::async = true

Flag indicating whether logging should be asynchronous.

Definition at line 86 of file UniqueFileLogger.hpp.

◆ auto_delete_days

int logit::UniqueFileLogger::Config::auto_delete_days = 30

Number of days after which old log files are deleted.

Definition at line 87 of file UniqueFileLogger.hpp.

◆ directory

std::string logit::UniqueFileLogger::Config::directory = "unique_logs"

Directory where log files are stored.

Definition at line 85 of file UniqueFileLogger.hpp.

◆ hash_length

size_t logit::UniqueFileLogger::Config::hash_length = 8

Length of the hash used in filenames.

Definition at line 88 of file UniqueFileLogger.hpp.

◆ queue_capacity

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

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

Definition at line 90 of file UniqueFileLogger.hpp.

◆ queue_policy

QueuePolicy logit::UniqueFileLogger::Config::queue_policy = QueuePolicy::Block

Overflow policy for the dedicated executor.

Definition at line 91 of file UniqueFileLogger.hpp.

◆ use_dedicated_executor

bool logit::UniqueFileLogger::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 89 of file UniqueFileLogger.hpp.


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