Kea
1.5.0
log_parser.h
Go to the documentation of this file.
1
// Copyright (C) 2014-2018 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
43
class
LogConfigParser
{
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
isc::process::LogConfigParser
Configures log4cplus by translating Kea configuration structures.
Definition:
log_parser.h:43
isc::process::LogConfigParser::parseConfiguration
void parseConfiguration(const isc::data::ConstElementPtr &log_config, bool verbose=false)
Parses specified configuration.
Definition:
log_parser.cc:31
isc::process::ConfigPtr
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the SrvConfig.
Definition:
config_base.h:119
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
isc::process::LogConfigParser::LogConfigParser
LogConfigParser(const ConfigPtr &storage)
Constructor.
Definition:
log_parser.cc:23
data.h
config_base.h
logging_info.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition:
data.h:23
src
lib
process
log_parser.h
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18