CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::FileLoggerOptions Struct Reference

File logger options. More...

Inheritance diagram for catapult::utils::FileLoggerOptions:
Collaboration diagram for catapult::utils::FileLoggerOptions:

Public Member Functions

 FileLoggerOptions (const std::string &directory, const std::string &filePattern)
 Creates options that specify the creation of log files with the pattern filePattern in the directory. More...
 
- Public Member Functions inherited from catapult::utils::BasicLoggerOptions
 BasicLoggerOptions ()
 Creates default options. More...
 

Public Attributes

std::string Directory
 Log directory. More...
 
std::string FilePattern
 Log filename pattern. More...
 
uint64_t RotationSize = 25u * 1024 * 1024
 File rotation size. More...
 
uint64_t MaxTotalSize = 100u * 25 * 1024 * 1024
 Maximum size of all log files. More...
 
uint64_t MinFreeSpace = 100u * 1024 * 1024
 Minimum size of free disk space in order to create log files. More...
 
- Public Attributes inherited from catapult::utils::BasicLoggerOptions
LogSinkType SinkType
 Log sink type. More...
 
LogColorMode ColorMode
 Log color mode. More...
 

Detailed Description

File logger options.

Constructor & Destructor Documentation

◆ FileLoggerOptions()

catapult::utils::FileLoggerOptions::FileLoggerOptions ( const std::string &  directory,
const std::string &  filePattern 
)
inlineexplicit

Creates options that specify the creation of log files with the pattern filePattern in the directory.

Member Data Documentation

◆ Directory

std::string catapult::utils::FileLoggerOptions::Directory

Log directory.

◆ FilePattern

std::string catapult::utils::FileLoggerOptions::FilePattern

Log filename pattern.

◆ MaxTotalSize

uint64_t catapult::utils::FileLoggerOptions::MaxTotalSize = 100u * 25 * 1024 * 1024

Maximum size of all log files.

◆ MinFreeSpace

uint64_t catapult::utils::FileLoggerOptions::MinFreeSpace = 100u * 1024 * 1024

Minimum size of free disk space in order to create log files.

◆ RotationSize

uint64_t catapult::utils::FileLoggerOptions::RotationSize = 25u * 1024 * 1024

File rotation size.


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