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();
90 if (!logging_info_.empty()) {
94 for (LoggingInfoStorage::const_iterator logger =
95 logging_info_.cbegin();
96 logger != logging_info_.cend(); ++logger) {
97 loggers->add(logger->toElement());
99 logging->set(
"loggers", loggers);
100 result->set(
"Logging", logging);
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
void process(T start, T finish)
Process Specifications.
Base class for all configurations.
void addLoggingInfo(const process::LoggingInfo &logging_info)
Sets logging specific configuration.
void applyLoggingCfg() const
Apply logging configuration to log4cplus.
virtual isc::data::ElementPtr toElement() const
Converts to Element representation.
void copy(ConfigBase &new_config) const
Copies the current configuration to a new configuration.
bool equals(const ConfigBase &other) const
Compares two configuration.
Embodies configuration information used during a server's configuration process.
boost::shared_ptr< Element > ElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.