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.h
1
#ifndef RECODEX_BROKER_LOG_CONFIG_H
2
#define RECODEX_BROKER_LOG_CONFIG_H
3
4
#include "spdlog/spdlog.h"
5
6
10
struct
log_config
{
11
public
:
15
std::string
log_path
=
"/var/log/recodex/"
;
19
std::string
log_basename
=
"broker"
;
23
std::string
log_suffix
=
"log"
;
28
std::string
log_level
=
"debug"
;
32
int
log_file_size
= 1024 * 1024;
36
int
log_files_count
= 3;
37
43
bool
operator==
(
const
log_config
&second)
const
44
{
45
return
(log_path == second.
log_path
&& log_basename == second.
log_basename
&& log_suffix == second.
log_suffix
&&
46
log_level == second.
log_level
&& log_file_size == second.
log_file_size
&&
47
log_files_count == second.
log_files_count
);
48
}
49
55
bool
operator!=
(
const
log_config
&second)
const
56
{
57
return
!((*this) == second);
58
}
59
};
60
61
#endif // RECODEX_BROKER_LOG_CONFIG_H
log_config::log_files_count
int log_files_count
Definition:
log_config.h:36
log_config::log_level
std::string log_level
Definition:
log_config.h:28
log_config::log_suffix
std::string log_suffix
Definition:
log_config.h:23
log_config
Definition:
log_config.h:10
log_config::log_file_size
int log_file_size
Definition:
log_config.h:32
log_config::log_path
std::string log_path
Definition:
log_config.h:15
log_config::operator==
bool operator==(const log_config &second) const
Definition:
log_config.h:43
log_config::log_basename
std::string log_basename
Definition:
log_config.h:19
log_config::operator!=
bool operator!=(const log_config &second) const
Definition:
log_config.h:55
src
config
log_config.h
Generated on Sat Nov 19 2016 15:15:48 for ReCodEx - Task Broker by
1.8.12