Apache Log4cxx
Version 1.3.0
|
RootLogger sits at the top of the logger hierachy. More...
#include <rootlogger.h>
Public Member Functions | |
RootLogger (const LevelPtr &level) | |
The root logger names itself as "root". | |
RootLogger (helpers::Pool &pool, const LevelPtr level) | |
~RootLogger () | |
virtual const LevelPtr & | getEffectiveLevel () const |
Return the assigned level value without walking the logger hierarchy. | |
void | setLevel (const LevelPtr level) |
Setting a null value to the level of the root logger may have catastrophic results. | |
![]() | |
Logger (const LogString &name) | |
This constructor initializes a new logger instance and sets its name. | |
Logger (helpers::Pool &pool, const LogString &name) | |
~Logger () | |
void | addAppender (const AppenderPtr newAppender) override |
Add newAppender to the list of appenders of this Logger instance. | |
void | callAppenders (const spi::LoggingEventPtr &event, helpers::Pool &p) const |
Call the appenders in the hierrachy starting at this . | |
void | closeNestedAppenders () |
Close all attached appenders implementing the AppenderAttachable interface. | |
void | debug (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for DEBUG events. | |
void | debug (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for DEBUG events. | |
void | error (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for ERROR events. | |
void | error (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for ERROR events. | |
void | fatal (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg and location to attached appender(s) if this logger is enabled for FATAL events. | |
void | fatal (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for FATAL events. | |
void | addEvent (const LevelPtr &level, std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | addFatalEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new fatal level logging event containing message and location to attached appender(s) without further checks. | |
void | addErrorEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new error level logging event containing message and location to attached appender(s) without further checks. | |
void | addWarnEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new warning level logging event containing message and location to attached appender(s) without further checks. | |
void | addInfoEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new info level logging event containing message and location to attached appender(s) without further checks. | |
void | addDebugEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new debug level logging event containing message and location to attached appender(s) without further checks. | |
void | addTraceEvent (std::string &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new trace level logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::string &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::string &message) const |
Add a new logging event containing message to attached appender(s) without further checks. | |
void | addEvent (const LevelPtr &level, std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | addFatalEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new fatal level logging event containing message and location to attached appender(s) without further checks. | |
void | addErrorEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new error level logging event containing message and location to attached appender(s) without further checks. | |
void | addWarnEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new warning level logging event containing message and location to attached appender(s) without further checks. | |
void | addInfoEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new info level logging event containing message and location to attached appender(s) without further checks. | |
void | addDebugEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new debug level logging event containing message and location to attached appender(s) without further checks. | |
void | addTraceEvent (std::wstring &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new trace level logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::wstring &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::wstring &message) const |
Add a new logging event containing message to attached appender(s) without further checks. | |
void | addEvent (const LevelPtr &level, std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | addFatalEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new fatal level logging event containing message and location to attached appender(s) without further checks. | |
void | addErrorEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new error level logging event containing message and location to attached appender(s) without further checks. | |
void | addWarnEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new warning level logging event containing message and location to attached appender(s) without further checks. | |
void | addInfoEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new info level logging event containing message and location to attached appender(s) without further checks. | |
void | addDebugEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new debug level logging event containing message and location to attached appender(s) without further checks. | |
void | addTraceEvent (std::basic_string< UniChar > &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new trace level logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::basic_string< UniChar > &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const std::basic_string< UniChar > &message) const |
Add a new logging event containing message to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const CFStringRef &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLog (const LevelPtr &level, const CFStringRef &message) const |
Add a new logging event containing message to attached appender(s) without further checks. | |
void | addEventLS (const LevelPtr &level, LogString &&message, const spi::LocationInfo &location=spi::LocationInfo::getLocationUnavailable()) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
void | forcedLogLS (const LevelPtr &level, const LogString &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to attached appender(s) without further checks. | |
bool | getAdditivity () const |
Get the additivity flag for this logger. | |
AppenderList | getAllAppenders () const override |
Get the appenders contained in this logger as an AppenderList. | |
AppenderPtr | getAppender (const LogString &name) const override |
Look for the appender named as name . | |
log4cxx::spi::LoggerRepository * | getLoggerRepository () const |
Return the the LoggerRepository where this Logger is attached. | |
const LogString & | getName () const |
Get the logger name. | |
void | getName (std::string &name) const |
Put name of this logger into name in current encoding. | |
void | getName (std::wstring &name) const |
Put name of this logger into name . | |
void | getName (std::basic_string< UniChar > &name) const |
Put name of this logger into name . | |
void | getName (CFStringRef &name) const |
Put name of this logger into name . | |
LoggerPtr | getParent () const |
The parent of this logger. | |
const LevelPtr & | getLevel () const |
The assigned Level, if any, for this logger. | |
helpers::ResourceBundlePtr | getResourceBundle () const |
Return the inherited ResourceBundle for this logger. | |
void | info (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
void | info (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for INFO events. | |
bool | isAttached (const AppenderPtr appender) const override |
Is appender attached to this logger? | |
bool | isDebugEnabled () const |
Is this logger is enabled for DEBUG level logging events? | |
bool | isEnabledFor (const LevelPtr &level) const |
Is this logger is enabled for logging events at level ? | |
bool | isInfoEnabled () const |
Is this logger is enabled for INFO level logging events? | |
bool | isWarnEnabled () const |
Is this logger is enabled for WARN level logging events? | |
bool | isErrorEnabled () const |
Is this logger is enabled for ERROR level logging events? | |
bool | isFatalEnabled () const |
Is this logger is enabled for FATAL level logging events? | |
bool | isTraceEnabled () const |
Is this logger is enabled for TRACE level logging events? | |
void | l7dlog (const LevelPtr &level, const LogString &key, const log4cxx::spi::LocationInfo &locationInfo, const std::vector< LogString > &values) const |
Add a new logging event containing locationInfo and the localized message key using values for parameter substitution to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::string &key, const log4cxx::spi::LocationInfo &locationInfo) const |
Add a new logging event containing locationInfo and the localized message key to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::string &key, const log4cxx::spi::LocationInfo &locationInfo, const std::string &val) const |
Add a new logging event containing locationInfo and the localized message key using parameter val to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::string &key, const log4cxx::spi::LocationInfo &locationInfo, const std::string &val1, const std::string &val2) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 and val2 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::string &key, const log4cxx::spi::LocationInfo &locationInfo, const std::string &val1, const std::string &val2, const std::string &val3) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 , val2 and val3 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::wstring &key, const log4cxx::spi::LocationInfo &locationInfo) const |
Add a new logging event containing locationInfo and the localized message key to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::wstring &key, const log4cxx::spi::LocationInfo &locationInfo, const std::wstring &val) const |
Add a new logging event containing locationInfo and the localized message key using parameter val to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::wstring &key, const log4cxx::spi::LocationInfo &locationInfo, const std::wstring &val1, const std::wstring &val2) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 and val2 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::wstring &key, const log4cxx::spi::LocationInfo &locationInfo, const std::wstring &val1, const std::wstring &val2, const std::wstring &val3) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 , val2 and val3 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::basic_string< UniChar > &key, const log4cxx::spi::LocationInfo &locationInfo) const |
Add a new logging event containing locationInfo and the localized message key to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::basic_string< UniChar > &key, const log4cxx::spi::LocationInfo &locationInfo, const std::basic_string< UniChar > &val) const |
Add a new logging event containing locationInfo and the localized message key using parameter val to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::basic_string< UniChar > &key, const log4cxx::spi::LocationInfo &locationInfo, const std::basic_string< UniChar > &val1, const std::basic_string< UniChar > &val2) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 and val2 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const std::basic_string< UniChar > &key, const log4cxx::spi::LocationInfo &locationInfo, const std::basic_string< UniChar > &val1, const std::basic_string< UniChar > &val2, const std::basic_string< UniChar > &val3) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 , val2 and val3 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const CFStringRef &key, const log4cxx::spi::LocationInfo &locationInfo) const |
Add a new logging event containing locationInfo and the localized message key to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const CFStringRef &key, const log4cxx::spi::LocationInfo &locationInfo, const CFStringRef &val1) const |
Add a new logging event containing locationInfo and the localized message key using parameter val to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const CFStringRef &key, const log4cxx::spi::LocationInfo &locationInfo, const CFStringRef &val1, const CFStringRef &val2) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 and val2 to attached appender(s) if this logger is enabled for level events. | |
void | l7dlog (const LevelPtr &level, const CFStringRef &key, const log4cxx::spi::LocationInfo &locationInfo, const CFStringRef &val1, const CFStringRef &val2, const CFStringRef &val3) const |
Add a new logging event containing locationInfo and the localized message key using parameters val1 , val2 and val3 to attached appender(s) if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::string &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::string &message) const |
Add a new logging event containing message to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::wstring &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::wstring &message) const |
Add a new logging event containing message to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::basic_string< UniChar > &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const std::basic_string< UniChar > &message) const |
Add a new logging event containing message to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const CFStringRef &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to the appenders attached to this logger if this logger is enabled for level events. | |
void | log (const LevelPtr &level, const CFStringRef &message) const |
Add a new logging event containing message to the appenders attached to this logger if this logger is enabled for level events. | |
void | logLS (const LevelPtr &level, const LogString &message, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing message and location to the appenders attached to this logger if this logger is enabled for level events. | |
void | removeAllAppenders () override |
Remove all previously added appenders from this logger instance. | |
void | removeAppender (const AppenderPtr appender) override |
Remove the appender passed as parameter form the list of appenders. | |
void | removeAppender (const LogString &name) override |
Remove the appender with the name passed as parameter form the list of appenders. | |
void | setAdditivity (bool additive) |
Set the additivity flag for this logger. | |
void | setResourceBundle (const helpers::ResourceBundlePtr &bundle) |
Set the resource bundle to be used with localized logging methods. | |
void | warn (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | warn (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for WARN events. | |
void | trace (const std::wstring &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const std::wstring &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const std::basic_string< UniChar > &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const std::basic_string< UniChar > &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const CFStringRef &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const CFStringRef &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const std::string &msg, const log4cxx::spi::LocationInfo &location) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | trace (const std::string &msg) const |
Add a new logging event containing msg to attached appender(s) if this logger is enabled for TRACE events. | |
void | reconfigure (const std::vector< AppenderPtr > &appenders, bool additivity) |
Reconfigure this logger by configuring all of the appenders. | |
![]() | |
virtual | ~AppenderAttachable () |
![]() | |
virtual | ~Object () |
virtual const helpers::Class & | getClass () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Additional Inherited Members | |
![]() | |
static LoggerPtr | getLogger (const std::string &name) |
Retrieve a logger by name in current encoding. | |
static LoggerPtr | getLogger (const char *const name) |
Retrieve a logger by name in current encoding. | |
static LoggerPtr | getLogger (const std::wstring &name) |
Retrieve a logger by name. | |
static LoggerPtr | getLogger (const wchar_t *const name) |
Retrieve a logger by name. | |
static LoggerPtr | getLogger (const std::basic_string< UniChar > &name) |
Retrieve a logger by name. | |
static LoggerPtr | getLogger (const CFStringRef &name) |
Retrieve a logger by name. | |
static LoggerPtr | getLoggerLS (const LogString &name) |
Retrieve a logger by name in Unicode. | |
static LoggerPtr | getRootLogger () |
Retrieve the root logger. | |
static LoggerPtr | getLoggerLS (const LogString &name, const log4cxx::spi::LoggerFactoryPtr &factory) |
Like getLogger except that the type of logger instantiated depends on the type returned by the LoggerFactory::makeNewLoggerInstance method of the factory parameter. | |
static LoggerPtr | getLogger (const std::string &name, const log4cxx::spi::LoggerFactoryPtr &factory) |
Like getLogger except that the type of logger instantiated depends on the type returned by the LoggerFactory::makeNewLoggerInstance method of the factory parameter. | |
static LoggerPtr | getLogger (const std::wstring &name, const log4cxx::spi::LoggerFactoryPtr &factory) |
Like getLogger except that the type of logger instantiated depends on the type returned by the LoggerFactory::makeNewLoggerInstance method of the factory parameter. | |
static LoggerPtr | getLogger (const std::basic_string< UniChar > &name, const log4cxx::spi::LoggerFactoryPtr &factory) |
Like getLogger except that the type of logger instantiated depends on the type returned by the LoggerFactory::makeNewLoggerInstance method of the factory parameter. | |
static LoggerPtr | getLogger (const CFStringRef &name, const log4cxx::spi::LoggerFactoryPtr &factory) |
Like getLogger except that the type of logger instantiated depends on the type returned by the LoggerFactory::makeNewLoggerInstance method of the factory parameter. | |
static bool | isDebugEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for DEBUG level logging events? | |
static bool | isInfoEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for INFO level logging events? | |
static bool | isWarnEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for WARN level logging events? | |
static bool | isErrorEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for ERROR level logging events? | |
static bool | isFatalEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for FATAL level logging events? | |
static bool | isTraceEnabledFor (const LoggerPtr &logger) |
Is logger is enabled for TRACE level logging events? | |
![]() | |
LogString | getResourceBundleString (const LogString &key) const |
Returns the string resource corresponding to key in this logger's inherited resource bundle. | |
void | removeHierarchy () |
Only the Hierarchy class can remove the hierarchy of a logger. | |
void | setHierarchy (spi::LoggerRepository *repository) |
Only the Hierarchy class can set the hierarchy of a logger. | |
void | setParent (LoggerPtr parentLogger) |
Only the Hierarchy class can set the parent of a logger. | |
void | updateThreshold () |
Only the Hierarchy class can change the threshold of a logger. | |
RootLogger sits at the top of the logger hierachy.
It is a regular logger except that it provides several guarantees.
First, it cannot be assigned a null level. Second, since root logger cannot have a parent, the getEffectiveLevel method always returns the value of the level field without walking the hierarchy.
The root logger names itself as "root".
However, the root logger cannot be retrieved by name.
log4cxx::spi::RootLogger::RootLogger | ( | helpers::Pool & | pool, |
const LevelPtr | level ) |
|
inline |
Return the assigned level value without walking the logger hierarchy.
Reimplemented from log4cxx::Logger.
Setting a null value to the level of the root logger may have catastrophic results.
We prevent this here.
Reimplemented from log4cxx::Logger.