Debian Codegraph @

src/LoggerConfigurator.hpp

raw
1 // LoggerConfigurator - reading strings for configuring the Logger
2 //
3 // Author : Klaus-Dieter Gundermann
4 // Created : 30.06.2020
5 //
6 // For all support, instructions and copyright go to:
7 // http://e2guardian.org/
8 // Released under the GPL v2, with the OpenSSL exception described in the README file.
9
10 #ifndef __HPP_LOGGER_CONFIG
11 #define __HPP_LOGGER_CONFIG
12
13 #include "Logger.hpp"
14 #include "String.hpp"
15
16 class LoggerConfigurator {
17 public:
18 LoggerConfigurator(Logger *logger);
19
20 ~LoggerConfigurator();
21
22 const static String Prefix;
23
24 // option: log_{source}={output}[, filename]
25 bool configure(const std::string option);
26 bool configure(LoggerSource source, const std::string option);
27
28 // debuglevel option debuglevel = 'ALL,-ICAP:destination:file
29 bool debuglevel(const std::string option);
30
31 void debugformat(int fmt);
32
33 private:
34 Logger *_logger;
35
36 };
37
38 #endif