Kea  1.9.9-git
log_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef DHCPSRV_LOGGING_H
8 #define DHCPSRV_LOGGING_H
9 
10 #include <cc/data.h>
11 #include <process/logging_info.h>
12 #include <process/config_base.h>
13 #include <vector>
14 
15 namespace isc {
16 namespace process {
17 
44 public:
45 
49  LogConfigParser(const ConfigPtr& storage);
50 
58  void parseConfiguration(const isc::data::ConstElementPtr& log_config,
59  bool verbose = false);
60 
61 private:
62 
67  void parseConfigEntry(isc::data::ConstElementPtr entry);
68 
75  void parseOutputOptions(std::vector<LoggingDestination>& destination,
76  isc::data::ConstElementPtr output_options);
77 
81  ConfigPtr config_;
82 
87  bool verbose_;
88 };
89 
90 } // namespace isc::dhcp
91 } // namespace isc
92 
93 #endif // DHCPSRV_LOGGING_H
LogConfigParser(const ConfigPtr &storage)
Constructor.
Definition: log_parser.cc:23
void parseConfiguration(const isc::data::ConstElementPtr &log_config, bool verbose=false)
Parses specified configuration.
Definition: log_parser.cc:31
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.
Configures log4cplus by translating Kea configuration structures.
Definition: log_parser.h:43
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
Definition: config_base.h:176