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
int log_files_count
Definition: log_config.h:36
std::string log_level
Definition: log_config.h:28
std::string log_suffix
Definition: log_config.h:23
int log_file_size
Definition: log_config.h:32
std::string log_path
Definition: log_config.h:15
bool operator==(const log_config &second) const
Definition: log_config.h:43
std::string log_basename
Definition: log_config.h:19
bool operator!=(const log_config &second) const
Definition: log_config.h:55