Fix test for valid pointer after conversion to boost::smart_ptr (The class defines...
[bpdyndnsd] / src / logger.h
CommitLineData
254bbf53
BS
1/** @file
2 * @brief Logger class header. This class represents the Logging facility.
3 *
4 *
5 *
6 * @copyright Intra2net AG
7 * @license GPLv2
8*/
9
10#ifndef LOGGER_H
11#define LOGGER_H
12
13namespace po = boost::program_options;
14
15using namespace std;
16
17class Logger
18{
19
20public:
21
22 Logger();
23
24 ~Logger();
25
26 void print_usage(const po::options_description*);
27
28 void print_version();
29
30 void print_cmd_parsed();
31
254bbf53
BS
32 void print_destructor_call(const string&);
33
34 void print_constructor_call(const string&);
35
36 void print_update_service(const string&);
37
38 void print_unknown_cmd_option(const string&);
39
40 void print_unknown_protocol(const string&);
41
42 void print_load_service_conf(const string&);
43
44 void print_load_main_conf(const string&);
45
46 void print_unknown_service_conf_option(const string&);
47
48 void print_unknown_main_conf_option(const string&);
49
50 void print_error_opening(const string&);
51
52 void print_error_config_path(const string&);
53
54 void print_conf_loaded(const string&);
55
56 void print_conf_not_loaded(const string&);
57
58 void print_missing_cmd_service_option();
388f4ab0
BS
59
60 void print_runnig_as_daemon(const int);
61
62 void print_daemon_mode(const bool);
63
64 void print_error_fork();
65
66 void print_pid_found(const int);
67
68 void print_process_already_running(const int);
c5675c01
BS
69
70 void print_caught_sigterm();
71
72 void print_caught_siguser1();
73
74 void print_caught_sighup();
254bbf53
BS
75};
76
77#endif