25namespace interprocess {
164 Logger(
const char* name) : loggerptr_(0), initialized_(false) {
169 size_t namelen = std::strlen(name);
172 <<
"name for a logger: valid names must be between 1 "
321 void output(
const Severity& severity,
const std::string& message);
350 void initLoggerImpl();
362 std::atomic<bool> initialized_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
BadInterprocessSync(const char *file, size_t line, const char *what)
Console Logger Implementation.
LoggerNameError(const char *file, size_t line, const char *what)
Formatter error(const MessageID &ident)
Output Error Message.
Formatter info(const MessageID &ident)
Output Informational Message.
isc::log::Formatter< Logger > Formatter
The formatter used to replace placeholders.
Formatter warn(const MessageID &ident)
Output Warning Message.
virtual void setSeverity(isc::log::Severity severity, int dbglevel=1)
Set Severity Level for Logger.
static const size_t MAX_LOGGER_NAME_SIZE
Maximum size of a logger name.
void setInterprocessSync(isc::log::interprocess::InterprocessSync *sync)
Replace the interprocess synchronization object.
Formatter debug(int dbglevel, const MessageID &ident)
Output Debug Message.
virtual int getEffectiveDebugLevel()
Get Effective Debug Level for Logger.
virtual isc::log::Severity getEffectiveSeverity()
Get Effective Severity Level for Logger.
virtual ~Logger()
Destructor.
virtual isc::log::Severity getSeverity()
Get Severity Level for Logger.
virtual bool isWarnEnabled()
Is WARNING Enabled?
virtual bool isFatalEnabled()
Is FATAL Enabled?
Logger(const char *name)
Constructor.
Formatter fatal(const MessageID &ident)
Output Fatal Message.
virtual bool isDebugEnabled(int dbglevel=MIN_DEBUG_LEVEL)
Returns if Debug Message Should Be Output.
virtual bool isInfoEnabled()
Is INFO Enabled?
bool operator==(Logger &other)
Equality.
virtual std::string getName()
Get Name of Logger.
virtual bool isErrorEnabled()
Is ERROR Enabled?
static std::string getVersion()
Version.
virtual int getDebugLevel()
Return DEBUG Level.
bool hasAppender(OutputOption::Destination const destination)
Check if this logger has an appender of the given type.
LoggingNotInitialized(const char *file, size_t line, const char *what)
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
const int MIN_DEBUG_LEVEL
Minimum/maximum debug levels.
Defines the logger used by the top-level component of kea-lfc.