7 #ifndef LOGGER_SPECIFICATION_H
8 #define LOGGER_SPECIFICATION_H
31 typedef std::vector<OutputOption>::iterator
iterator;
43 int dbglevel = 0,
bool additive =
false) :
44 name_(name), severity_(severity), dbglevel_(dbglevel),
100 options_.push_back(option);
105 return options_.begin();
110 return options_.begin();
115 return options_.end();
119 const_iterator
end()
const {
120 return options_.end();
125 return options_.size();
142 std::vector<OutputOption> options_;
148 #endif // LOGGER_SPECIFICATION_H
void addOutputOption(const OutputOption &option)
Add output option.
void setName(const std::string &name)
Set the name of the logger.
std::vector< OutputOption >::iterator iterator
const_iterator begin() const
LoggerSpecification(const std::string &name="", isc::log::Severity severity=isc::log::INFO, int dbglevel=0, bool additive=false)
Constructor.
isc::log::Severity getSeverity() const
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::vector< OutputOption >::const_iterator const_iterator
void setDbglevel(int dbglevel)
Set the debug level.
const_iterator end() const
void setSeverity(isc::log::Severity severity)
Set the severity.
std::string getName() const
void reset()
Reset back to defaults.
void setAdditive(bool additive)
Set the additive flag.
size_t optionCount() const