7#ifndef LOGGER_MANAGER_H
8#define LOGGER_MANAGER_H
13#include <boost/noncopyable.hpp>
29class LoggerManagerImpl;
58 for (T i = start; i != finish; ++i) {
59 processSpecification(*i);
71 processSpecification(spec);
111 static void init(
const std::string& root,
113 int dbglevel = 0,
const char* file = NULL,
114 bool buffer =
false);
UnknownLoggingDestination(const char *file, size_t line, const char *what)
This is a base class for exceptions thrown from the DNS library module.
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Logger Manager Implementation.
static void init(const std::string &root, isc::log::Severity severity=isc::log::INFO, int dbglevel=0, const char *file=NULL, bool buffer=false)
Run-Time Initialization.
static void reset()
Reset logging.
~LoggerManager()
Destructor.
static void logDuplicatedMessages()
List duplicated log messages.
void process(const LoggerSpecification &spec)
Process a single specification.
void process()
Process 'empty' specification.
void process(T start, T finish)
Process Specifications.
static std::mutex & getMutex()
Return a process-global mutex that's used for mutual exclusion among threads of a single process duri...
static void readLocalMessageFile(const char *file)
Read local message file.
LoggerManager()
Constructor.
Defines the logger used by the top-level component of kea-lfc.