#include <loggerimpl.h>
Inheritance diagram for log4cplus::spi::LoggerImpl:
Public Member Functions | |
virtual void | callAppenders (const InternalLoggingEvent &event) |
Call the appenders in the hierrachy starting at this . | |
virtual void | closeNestedAppenders () |
Close all attached appenders implementing the AppenderAttachable interface. | |
virtual bool | isEnabledFor (LogLevel ll) const |
Check whether this logger is enabled for a given LogLevel passed as parameter. | |
virtual void | log (LogLevel ll, const log4cplus::tstring &message, const char *file=NULL, int line=-1) |
This generic form is intended to be used by wrappers. | |
virtual LogLevel | getChainedLogLevel () const |
Starting from this logger, search the logger hierarchy for a "set" LogLevel and return it. | |
LogLevel | getLogLevel () const |
Returns the assigned LogLevel, if any, for this Logger. | |
void | setLogLevel (LogLevel _ll) |
Set the LogLevel of this Logger. | |
virtual Hierarchy & | getHierarchy () const |
Return the the Hierarchy where this Logger instance is attached. | |
log4cplus::tstring | getName () const |
Return the logger name. | |
bool | getAdditivity () const |
Get the additivity flag for this Logger instance. | |
void | setAdditivity (bool additive) |
Set the additivity flag for this Logger instance. | |
virtual | ~LoggerImpl () |
Protected Member Functions | |
LoggerImpl (const log4cplus::tstring &name, Hierarchy &h) | |
This constructor created a new Logger instance and sets its name. | |
virtual void | forcedLog (LogLevel ll, const log4cplus::tstring &message, const char *file=NULL, int line=-1) |
This method creates a new logging event and logs the event without further checks. | |
Protected Attributes | |
log4cplus::tstring | name |
The name of this logger. | |
LogLevel | ll |
The assigned LogLevel of this logger. | |
SharedLoggerImplPtr | parent |
The parent of this logger. | |
bool | additive |
Additivity is set to true by default, that is children inherit the appenders of their ancestors by default. | |
Friends | |
class | log4cplus::Logger |
class | log4cplus::DefaultLoggerFactory |
class | log4cplus::Hierarchy |
One of the distintive features of log4cplus are hierarchical loggers and their evaluation.
See the user manual for an introduction on this class.
Definition at line 40 of file loggerimpl.h.
|
|
|
This constructor created a new It is intended to be used by sub-classes only. You should not create loggers directly.
|
|
Call the appenders in the hierrachy starting at If no appenders could be found, emit a warning. This method calls all the appenders inherited from the hierarchy circumventing any evaluation of whether to log or not to log the particular log request.
|
|
Close all attached appenders implementing the AppenderAttachable interface.
|
|
This method creates a new logging event and logs the event without further checks.
|
|
Get the additivity flag for this Logger instance.
|
|
Starting from this logger, search the logger hierarchy for a "set" LogLevel and return it. Otherwise, return the LogLevel of the root logger. The Logger class is designed so that this method executes as quickly as possible. Reimplemented in log4cplus::spi::RootLogger. |
|
Return the the Hierarchy where this
|
|
Returns the assigned LogLevel, if any, for this Logger.
Definition at line 94 of file loggerimpl.h. References log4cplus::LogLevel. |
|
Return the logger name.
Definition at line 110 of file loggerimpl.h. |
|
Check whether this logger is enabled for a given LogLevel passed as parameter.
|
|
This generic form is intended to be used by wrappers.
|
|
Set the additivity flag for this Logger instance.
|
|
Set the LogLevel of this Logger.
Reimplemented in log4cplus::spi::RootLogger. Definition at line 99 of file loggerimpl.h. |
|
Definition at line 186 of file loggerimpl.h. |
|
Definition at line 187 of file loggerimpl.h. |
|
Definition at line 185 of file loggerimpl.h. |
|
Additivity is set to true by default, that is children inherit the appenders of their ancestors by default.
If this variable is set to Definition at line 173 of file loggerimpl.h. |
|
The assigned LogLevel of this logger.
Definition at line 156 of file loggerimpl.h. |
|
The name of this logger.
Definition at line 151 of file loggerimpl.h. |
|
The parent of this logger. All loggers have at least one ancestor which is the root logger. Definition at line 162 of file loggerimpl.h. |