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