Class Log

Class Documentation

class Log

This static class includes a variety of methods for interacting with the the logging module. These methods are not meant for direct use. Rather, they are used by the LOG* macros and the SWIG interface declared in logInterface.h.

Public Functions

Log()
bool isDebugEnabled() const

Check whether the logger is enabled for the DEBUG Level

bool isErrorEnabled() const

Check whether the logger is enabled for the ERROR Level

bool isFatalEnabled() const

Check whether the logger is enabled for the FATAL Level

bool isInfoEnabled() const

Check whether the logger is enabled for the INFO Level

bool isTraceEnabled() const

Check whether the logger is enabled for the TRACE Level

bool isWarnEnabled() const

Check whether the logger is enabled for the WARN Level

std::string getName() const
void setLevel(int level)
int getLevel() const
bool isEnabledFor(int level) const
Log getChild(std::string const &suffix) const
void log(log4cxx::LevelPtr level, log4cxx::spi::LocationInfo const &location, char const *fmt, ...)
void logMsg(log4cxx::LevelPtr level, log4cxx::spi::LocationInfo const &location, std::string const &msg)

Public Static Functions

static Log getDefaultLogger()

Return default logger instance, same as default constructor.

static void configure()
static void configure(std::string const &filename)
static void configure_prop(std::string const &properties)
static Log getLogger(Log const &logger)
static Log getLogger(std::string const &loggername)
static std::string MDC(std::string const &key, std::string const &value)
static void MDCRemove(std::string const &key)
static int MDCRegisterInit(std::function<void()> function)