OutputOption::Destination getDestination(const std::string &dest_str)
OutputOption::Stream getStream(const std::string &stream_str)
Defines the logger used by the top-level component of kea-lfc.
Stream
If console, stream on which messages are output.
Destination destination
Members.
std::string pattern
log content pattern
bool flush
true to flush after each message
static const std::string DEFAULT_FILE_PATTERN
Default layout pattern for file logs.
OutputOption()
Constructor.
unsigned int maxver
Maximum versions (none if <= 0)
std::string facility
syslog facility
uint64_t maxsize
0 if no maximum size
Stream stream
stdout/stderr if console output
static const std::string DEFAULT_SYSLOG_PATTERN
Default layout pattern for syslog logs.
std::string filename
Filename if file output.
static const std::string DEFAULT_CONSOLE_PATTERN
Default layout pattern for console logs.