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