LogIt++
Loading...
Searching...
No Matches
logit::FileLogger::Config Struct Reference

Configuration for the file logger. More...

#include <FileLogger.hpp>

Public Attributes

std::string directory = "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.
 
uint64_t max_file_size_bytes = 0
 Max size for log file before rotation (0 = off).
 
uint32_t max_rotated_files = 0
 Number of rotated files to keep (0 = unlimited).
 
bool compress_rotated = false
 Whether to compress rotated files.
 
std::string compress_cmd
 External command used for compression.
 

Detailed Description

Configuration for the file logger.

Definition at line 76 of file FileLogger.hpp.

Member Data Documentation

◆ async

bool logit::FileLogger::Config::async = true

Flag indicating whether logging should be asynchronous.

Definition at line 78 of file FileLogger.hpp.

◆ auto_delete_days

int logit::FileLogger::Config::auto_delete_days = 30

Number of days after which old log files are deleted.

Definition at line 79 of file FileLogger.hpp.

◆ compress_cmd

std::string logit::FileLogger::Config::compress_cmd

External command used for compression.

Definition at line 83 of file FileLogger.hpp.

◆ compress_rotated

bool logit::FileLogger::Config::compress_rotated = false

Whether to compress rotated files.

Definition at line 82 of file FileLogger.hpp.

◆ directory

std::string logit::FileLogger::Config::directory = "logs"

Directory where log files are stored.

Definition at line 77 of file FileLogger.hpp.

◆ max_file_size_bytes

uint64_t logit::FileLogger::Config::max_file_size_bytes = 0

Max size for log file before rotation (0 = off).

Definition at line 80 of file FileLogger.hpp.

◆ max_rotated_files

uint32_t logit::FileLogger::Config::max_rotated_files = 0

Number of rotated files to keep (0 = unlimited).

Definition at line 81 of file FileLogger.hpp.


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