24 #ifndef LOG4CPLUS_SPI_LOGGER_HEADER_ 25 #define LOG4CPLUS_SPI_LOGGER_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 42 class DefaultLoggerFactory;
77 virtual void closeNestedAppenders();
85 virtual bool isEnabledFor(
LogLevel ll)
const;
91 const char* file=
nullptr,
int line=-1,
92 const char*
function=
nullptr);
104 virtual LogLevel getChainedLogLevel()
const;
132 bool getAdditivity()
const;
137 void setAdditivity(
bool additive);
165 const char*
function);
216 #endif // LOG4CPLUS_SPI_LOGGER_HEADER_ The internal representation of logging events.
This is the central class in the log4cplus package.
void setLogLevel(LogLevel _ll)
Set the LogLevel of this Logger.
LogLevel getLogLevel() const
Returns the assigned LogLevel, if any, for this Logger.
This Interface is for attaching Appenders to objects.
LogLevel ll
The assigned LogLevel of this logger.
This is the central class in the log4cplus package.
helpers::SharedObjectPtr< LoggerImpl > SharedLoggerImplPtr
log4cplus::tstring const & getName() const
Return the logger name.
LoggerImpl::SharedLoggerImplPtr SharedLoggerImplPtr
log4cplus::tstring name
The name of this logger.
SharedLoggerImplPtr parent
The parent of this logger.
std::basic_string< tchar > tstring
This class is used to create the default implementation of the Logger class.
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
bool additive
Additivity is set to true by default, that is children inherit the appenders of their ancestors by de...