ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
log_config Struct Reference

#include <log_config.h>

Public Member Functions

bool operator== (const log_config &second) const
 
bool operator!= (const log_config &second) const
 

Public Attributes

std::string log_path = "/var/log/recodex/"
 
std::string log_basename = "broker"
 
std::string log_suffix = "log"
 
std::string log_level = "debug"
 
int log_file_size = 1024 * 1024
 
int log_files_count = 3
 

Detailed Description

Structure which stores all information needed to initialize logger.

Definition at line 10 of file log_config.h.

Member Function Documentation

§ operator!=()

bool log_config::operator!= ( const log_config second) const
inline

Opposite of equality operator

Parameters
secondOther config for comparison.
Returns
true if this instance and second has different variable values, false otherwise.

Definition at line 55 of file log_config.h.

§ operator==()

bool log_config::operator== ( const log_config second) const
inline

Equality operator on log_config structures.

Parameters
secondOther config for comparison.
Returns
true if this instance and second has the same variable values, false otherwise.

Definition at line 43 of file log_config.h.

Member Data Documentation

§ log_basename

std::string log_config::log_basename = "broker"

Filemane of log file without extension.

Definition at line 19 of file log_config.h.

§ log_file_size

int log_config::log_file_size = 1024 * 1024

File size of one rotation of log file.

Definition at line 32 of file log_config.h.

§ log_files_count

int log_config::log_files_count = 3

Number of rotations which will be kept saved.

Definition at line 36 of file log_config.h.

§ log_level

std::string log_config::log_level = "debug"

Level of logging. One of: trace, debug, info, notice, warn, err, critical, alert, emerg

Definition at line 28 of file log_config.h.

§ log_path

std::string log_config::log_path = "/var/log/recodex/"

Determines in which directory log will be saved.

Definition at line 15 of file log_config.h.

§ log_suffix

std::string log_config::log_suffix = "log"

Log filename extension.

Definition at line 23 of file log_config.h.


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