7 #ifndef LOGGER_MANAGER_H
8 #define LOGGER_MANAGER_H
13 #include <boost/noncopyable.hpp>
29 class 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);
173 #endif // LOGGER_MANAGER_H
static void logDuplicatedMessages()
List duplicated log messages.
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.
void process(const LoggerSpecification &spec)
Process a single specification.
Logger Manager Implementation.
void process(T start, T finish)
Process Specifications.
void process()
Process 'empty' specification.
~LoggerManager()
Destructor.
static std::mutex & getMutex()
Return a process-global mutex that's used for mutual exclusion among threads of a single process duri...
static void reset()
Reset logging.
static void readLocalMessageFile(const char *file)
Read local message file.
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.
LoggerManager()
Constructor.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
UnknownLoggingDestination(const char *file, size_t line, const char *what)