19 ConfigBase::applyLoggingCfg()
const {
21 std::list<LoggerSpecification> specs;
22 for (LoggingInfoStorage::const_iterator it = logging_info_.begin();
23 it != logging_info_.end(); ++it) {
24 specs.push_back(it->toSpec());
27 manager.
process(specs.begin(), specs.end());
33 if (logging_info_.size() != other.logging_info_.size()) {
39 for (LoggingInfoStorage::const_iterator this_it =
40 logging_info_.begin(); this_it != logging_info_.end();
43 for (LoggingInfoStorage::const_iterator other_it =
44 other.logging_info_.begin();
45 other_it != other.logging_info_.end(); ++other_it) {
46 if (this_it->equals(*other_it)) {
58 if ((config_ctl_info_ && !other.config_ctl_info_) ||
59 (!config_ctl_info_ && other.config_ctl_info_) ||
60 ((config_ctl_info_ && other.config_ctl_info_) &&
61 (!config_ctl_info_->equals(*(other.config_ctl_info_))))) {
71 other.logging_info_.clear();
72 for (LoggingInfoStorage::const_iterator it = logging_info_.begin();
73 it != logging_info_.end(); ++it) {
78 if (config_ctl_info_) {
81 other.config_ctl_info_.reset();
86 ConfigBase::toElement()
const {
90 if (!logging_info_.empty()) {
94 for (LoggingInfoStorage::const_iterator
logger =
95 logging_info_.cbegin();
97 loggers->add(
logger->toElement());
99 logging->set(
"loggers", loggers);
100 result->set(
"Logging", logging);
void addLoggingInfo(const process::LoggingInfo &logging_info)
Sets logging specific configuration.
void process(T start, T finish)
Process Specifications.
Base class for all configurations.
Embodies configuration information used during a server's configuration process.
boost::shared_ptr< Element > ElementPtr
ElementPtr copy(ConstElementPtr from, int level)
Copy the data up to a nesting level.
Defines the logger used by the top-level component of kea-dhcp-ddns.
isc::log::Logger logger("asiodns")
Use the ASIO logger.