13 #include <boost/algorithm/string.hpp>
21 if (boost::iequals(sev_str,
"DEBUG")) {
23 }
else if (boost::iequals(sev_str,
"INFO")) {
25 }
else if (boost::iequals(sev_str,
"WARN")) {
27 }
else if (boost::iequals(sev_str,
"ERROR")) {
29 }
else if (boost::iequals(sev_str,
"FATAL")) {
31 }
else if (boost::iequals(sev_str,
"NONE")) {
isc::log::Severity getSeverity(const std::string &sev_str)
Returns the isc::log::Severity value represented by the given string.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
const isc::log::MessageID LOG_BAD_SEVERITY
Defines the logger used by the top-level component of kea-dhcp-ddns.
isc::log::Logger logger("asiodns")
Use the ASIO logger.