11#include <boost/algorithm/string.hpp>
31 if (boost::iequals(dest_str,
"console")) {
33 }
else if (boost::iequals(dest_str,
"file")) {
35 }
else if (boost::iequals(dest_str,
"syslog")) {
46 if (boost::iequals(stream_str,
"stderr")) {
48 }
else if (boost::iequals(stream_str,
"stdout")) {
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
OutputOption::Destination getDestination(const std::string &dest_str)
const isc::log::MessageID LOG_BAD_DESTINATION
OutputOption::Stream getStream(const std::string &stream_str)
const isc::log::MessageID LOG_BAD_STREAM
Defines the logger used by the top-level component of kea-lfc.
Stream
If console, stream on which messages are output.
static const std::string DEFAULT_FILE_PATTERN
Default layout pattern for file logs.
static const std::string DEFAULT_SYSLOG_PATTERN
Default layout pattern for syslog logs.
static const std::string DEFAULT_CONSOLE_PATTERN
Default layout pattern for console logs.