Apache Log4cxx  Version 1.2.0
Loading...
Searching...
No Matches
log4cxx::helpers::LogLog Class Reference

This class used to output log statements from within the log4cxx package. More...

#include <loglog.h>

Public Member Functions

 ~LogLog ()
 

Static Public Member Functions

static void setInternalDebugging (bool enabled)
 Use the value of enabled as the new internal debug logging state.
 
static void debug (const LogString &msg)
 Output msg to SystemErrWriter if internal debug logging is enabled.
 
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)
 Output msg to SystemErrWriter unconditionally.
 
static void error (const LogString &msg, const std::exception &ex)
 Output msg and ex.what() to SystemErrWriter unconditionally.
 
static void setQuietMode (bool newValue)
 Change quiet mode to newValue.
 
static void warn (const LogString &msg)
 Output msg to SystemErrWriter unconditionally.
 
static void warn (const LogString &msg, const std::exception &ex)
 Output msg and ex.what() to SystemErrWriter unconditionally.
 

Detailed Description

This class used to output log statements from within the log4cxx package.

Log4cxx components cannot make log4cxx logging calls. However, it is sometimes useful for the user to learn about what log4cxx is doing. You can enable log4cxx internal debug logging by calling the setInternalDebugging method.

All LogLog messages are written to SystemErrWriter prepended with the string "log4cxx: ".

Constructor & Destructor Documentation

◆ ~LogLog()

log4cxx::helpers::LogLog::~LogLog ( )

Member Function Documentation

◆ debug() [1/2]

static void log4cxx::helpers::LogLog::debug ( const LogString msg)
static

Output msg to SystemErrWriter if internal debug logging is enabled.

◆ debug() [2/2]

static void log4cxx::helpers::LogLog::debug ( const LogString msg,
const std::exception &  e 
)
static

Output msg and ex.what() to SystemErrWriter if internal debug logging is enabled.

◆ error() [1/2]

static void log4cxx::helpers::LogLog::error ( const LogString msg)
static

Output msg to SystemErrWriter unconditionally.

◆ error() [2/2]

static void log4cxx::helpers::LogLog::error ( const LogString msg,
const std::exception &  ex 
)
static

Output msg and ex.what() to SystemErrWriter unconditionally.

◆ setInternalDebugging()

static void log4cxx::helpers::LogLog::setInternalDebugging ( bool  enabled)
static

Use the value of enabled as the new internal debug logging state.

◆ setQuietMode()

static void log4cxx::helpers::LogLog::setQuietMode ( bool  newValue)
static

Change quiet mode to newValue.

In quiet mode LogLog generates strictly no output, not even for errors.

Parameters
newValuetrue for no output.

◆ warn() [1/2]

static void log4cxx::helpers::LogLog::warn ( const LogString msg)
static

Output msg to SystemErrWriter unconditionally.

◆ warn() [2/2]

static void log4cxx::helpers::LogLog::warn ( const LogString msg,
const std::exception &  ex 
)
static

Output msg and ex.what() to SystemErrWriter unconditionally.


The documentation for this class was generated from the following file: