 |
Kea
1.5.0
|
Go to the documentation of this file.
18 #include <boost/noncopyable.hpp>
22 #include <log4cplus/logger.h>
135 return (logger_.isEnabledFor(log4cplus::INFO_LOG_LEVEL));
140 return (logger_.isEnabledFor(log4cplus::WARN_LOG_LEVEL));
145 return (logger_.isEnabledFor(log4cplus::ERROR_LOG_LEVEL));
150 return (logger_.isEnabledFor(log4cplus::FATAL_LOG_LEVEL));
186 return (name_ == other.name_);
191 log4cplus::Logger logger_;
199 #endif // LOGGER_IMPL_H
virtual bool isWarnEnabled()
Is WARNING Enabled?
static std::string getVersion()
Version.
void setInterprocessSync(isc::log::interprocess::InterprocessSync *sync)
Replace the interprocess synchronization object.
virtual void setSeverity(Severity severity, int dbglevel=1)
Set Severity Level for Logger.
virtual int getDebugLevel()
Return debug level.
virtual bool isFatalEnabled()
Is FATAL Enabled?
void outputRaw(const Severity &severity, const std::string &message)
Raw output.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual Severity getSeverity()
Get Severity Level for Logger.
Console Logger Implementation.
bool operator==(const LoggerImpl &other)
Equality.
virtual bool isDebugEnabled(int dbglevel=MIN_DEBUG_LEVEL)
Returns if Debug Message Should Be Output.
virtual Severity getEffectiveSeverity()
Get Effective Severity Level for Logger.
LoggerImpl(const std::string &name)
Constructor.
virtual ~LoggerImpl()
Destructor.
std::string * lookupMessage(const MessageID &id)
Look up message text in dictionary.
virtual int getEffectiveDebugLevel()
Return effective debug level.
virtual bool isErrorEnabled()
Is ERROR Enabled?
virtual bool isInfoEnabled()
Is INFO Enabled?
static log4cplus::LogLevel convertFromBindLevel(const isc::log::Level &level)
Convert Kea level to log4cplus logging level.
virtual std::string getName()
Get the full name of the logger (including the root name)
const int MIN_DEBUG_LEVEL
Minimum/maximum debug levels.