Kea 2.7.0
log_parser.h
Go to the documentation of this file.
1// Copyright (C) 2014-2023 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>
12#include <process/config_base.h>
13#include <vector>
14
15namespace isc {
16namespace process {
17
44public:
45
49 LogConfigParser(const ConfigPtr& storage);
50
59 bool verbose = false);
60
61private:
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
Configures log4cplus by translating Kea configuration structures.
Definition log_parser.h:43
LogConfigParser(const ConfigPtr &storage)
Constructor.
Definition log_parser.cc:22
void parseConfiguration(const isc::data::ConstElementPtr &log_config, bool verbose=false)
Parses specified configuration.
Definition log_parser.cc:30
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
Defines the logger used by the top-level component of kea-lfc.