18#ifndef _LOG4CXX_HELPERS_LOG_LOG_H
19#define _LOG4CXX_HELPERS_LOG_LOG_H
41class LOG4CXX_EXPORT LogLog
44 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(LogLogPrivate, m_priv)
48 LogLog(
const LogLog&);
49 LogLog& operator=(
const LogLog&);
50 static LogLog& getInstance();
116 static void emit_log(
const LogString& prefix,
const std::exception& ex,
const LogString& suffix);
121#define LOGLOG_DEBUG(log) { \
122 if (LogLog::isDebugEnabled()) \
123 LOG4CXX_NS::helpers::LogLog::debug(log) ; }
125#define LOGLOG_WARN(log) { \
126 LOG4CXX_NS::helpers::LogLog::warn(log) ; }
128#define LOGLOG_ERROR(log) { \
129 LOG4CXX_NS::helpers::LogLog::warn(log); }
static void error(const LogString &msg)
Output msg to SystemErrWriter unconditionally.
static void setInternalDebugging(bool newValue)
Start/stop outputing debug messages if newValue is true/false respectively.
static void debug(const LogString &msg, const std::exception &e)
Output msg and ex.what() to SystemErrWriter if internal debug logging is enabled.
static void error(const LogString &msg, const std::exception &ex)
Output msg and ex.what() to SystemErrWriter unconditionally.
static void setColorEnabled(bool newValue)
Start/stop coloring message text if newValue is true/false respectively.
static void warn(const LogString &msg, const std::exception &ex)
Output msg and ex.what() to SystemErrWriter unconditionally.
static bool isDebugEnabled()
Are debug messages sent to SystemErrWriter?
static void warn(const LogString &msg)
Output msg to SystemErrWriter unconditionally.
static void debug(const LogString &msg)
Output msg to SystemErrWriter if internal debug logging is enabled.
static bool isColorEnabled()
Are messages output in color?
static void setQuietMode(bool newValue)
Change quiet mode to newValue.
The WideLife wrapper is destined to prolongate the runtime logger state lifetime from static duration...
Definition widelife.h:37
std::basic_string< logchar > LogString
Definition logstring.h:60