11 #include <boost/algorithm/string.hpp> 22 if (boost::iequals(dest_str,
"console")) {
24 }
else if (boost::iequals(dest_str,
"file")) {
26 }
else if (boost::iequals(dest_str,
"syslog")) {
37 if (boost::iequals(stream_str,
"stderr")) {
39 }
else if (boost::iequals(stream_str,
"stdout")) {
OutputOption::Stream getStream(const std::string &stream_str)
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
const isc::log::MessageID LOG_BAD_STREAM
const isc::log::MessageID LOG_BAD_DESTINATION
Defines the logger used by the top-level component of kea-dhcp-ddns.
isc::log::Logger logger("asiodns")
Use the ASIO logger.
OutputOption::Destination getDestination(const std::string &dest_str)
Stream
If console, stream on which messages are output.