42 #ifndef LOGGER_CONFIGURATION_HPP_ 43 #define LOGGER_CONFIGURATION_HPP_ 60 class LoggerConfiguration {
83 std::string m_log_file_folder;
86 LoggerConfiguration(LogLevel level,
bool to_file, std::string to_file_folder);
92 ~LoggerConfiguration();
97 LoggerConfiguration(
const LoggerConfiguration& configuration);
102 LoggerConfiguration& operator=(
const LoggerConfiguration& configuration);
107 LoggerConfiguration(LoggerConfiguration&& configuration);
112 LoggerConfiguration& operator=(LoggerConfiguration&& configuration);
119 LogLevel getLogLevel()
const;
126 bool getLogToFile()
const;
133 std::string getFileLogFolder()
const;
138 LogLevel log_level = LogLevel::TRACE;
141 bool log_to_file =
false;
145 std::string log_file_folder =
"~/.kallisto/log";
151 Builder(Builder
const&) =
delete;
152 Builder(Builder&&) =
delete;
153 void operator=(Builder
const&) =
delete;
154 void operator=(Builder &&) =
delete;
177 Builder& withLogLevel(LogLevel level);
194 Builder& toFile(std::string path);
201 LoggerConfiguration build();
219 LoggerConfiguration buildDefault();
Definition: bluetooth_adapter.hpp:52