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();
120 return options_.end();
125 return options_.size();
142 std::vector<OutputOption> options_;
isc::log::Severity getSeverity() const
void addOutputOption(const OutputOption &option)
Add output option.
LoggerSpecification(const std::string &name="", isc::log::Severity severity=isc::log::INFO, int dbglevel=0, bool additive=false)
Constructor.
std::vector< OutputOption >::iterator iterator
std::string getName() const
std::vector< OutputOption >::const_iterator const_iterator
const_iterator end() const
void setDbglevel(int dbglevel)
Set the debug level.
void setSeverity(isc::log::Severity severity)
Set the severity.
const_iterator begin() const
size_t optionCount() const
void reset()
Reset back to defaults.
void setName(const std::string &name)
Set the name of the logger.
void setAdditive(bool additive)
Set the additive flag.
Defines the logger used by the top-level component of kea-lfc.