dodo  0.0.1
A C++ library to create containerized Linux services
dodo::common::Logger::FileParams Struct Reference

File Logging parameters. More...

#include <logger.hpp>

Collaboration diagram for dodo::common::Logger::FileParams:

Data Fields

std::string active_log
 the filename of the active log More...
 
std::string directory
 The directory to write the log files in. More...
 
std::ofstream file
 the ofstream of the active log. More...
 
size_t filesize = 0
 current file size More...
 
size_t max_file_trail = 4
 The maximum number of files to keep besides the active log file. More...
 
size_t max_size_mib = 10
 The maximum size of a logfile. More...
 

Detailed Description

File Logging parameters.

Definition at line 68 of file logger.hpp.

Field Documentation

◆ active_log

std::string dodo::common::Logger::FileParams::active_log

the filename of the active log

Definition at line 76 of file logger.hpp.

Referenced by dodo::common::Logger::checkRotate(), and dodo::common::Logger::getFileParams().

◆ directory

std::string dodo::common::Logger::FileParams::directory

The directory to write the log files in.

Definition at line 70 of file logger.hpp.

Referenced by dodo::common::Logger::checkRotate(), and dodo::common::Logger::getFileParams().

◆ file

std::ofstream dodo::common::Logger::FileParams::file

◆ filesize

size_t dodo::common::Logger::FileParams::filesize = 0

◆ max_file_trail

size_t dodo::common::Logger::FileParams::max_file_trail = 4

The maximum number of files to keep besides the active log file.

Definition at line 74 of file logger.hpp.

Referenced by dodo::common::Logger::checkRotate(), and dodo::common::Logger::getFileParams().

◆ max_size_mib

size_t dodo::common::Logger::FileParams::max_size_mib = 10

The maximum size of a logfile.

Definition at line 72 of file logger.hpp.

Referenced by dodo::common::Logger::checkRotate(), and dodo::common::Logger::getFileParams().


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