|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #ifndef _LOG4CXX_SPI_LOG_REPOSITORY_H
19 #define _LOG4CXX_SPI_LOG_REPOSITORY_H
46 #if 15 < LOG4CXX_ABI_VERSION
60 #if 15 < LOG4CXX_ABI_VERSION
65 virtual void removeHierarchyEventListener(
const spi::HierarchyEventListenerPtr& listener) = 0;
118 #if 15 < LOG4CXX_ABI_VERSION
130 virtual bool removeLogger(
const LogString& name,
bool ifNotUsed =
true) = 0;
154 #endif //_LOG4CXX_SPI_LOG_REPOSITORY_H
std::basic_string< logchar > LogString
Definition: logstring.h:60
virtual bool isDisabled(int level) const =0
Is the repository disabled for a given level? The answer depends on the repository threshold and the ...
virtual void shutdown()=0
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146
virtual void setThreshold(const LevelPtr &level)=0
Set the repository-wide threshold.
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
virtual LevelPtr getThreshold() const =0
Get the repository-wide threshold.
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:27
virtual void addHierarchyEventListener(const HierarchyEventListenerPtr &listener)=0
Add a HierarchyEventListener event to the repository.
virtual LoggerPtr getLogger(const LogString &name)=0
Retrieve the name Logger instance.
virtual void setConfigured(bool configured)=0
virtual LoggerPtr getLogger(const LogString &name, const spi::LoggerFactoryPtr &factory)=0
Retrieve the name Logger instance.
std::vector< LoggerPtr > LoggerList
Definition: logmanager.h:29
A LoggerRepository is used to create and retrieve Loggers.
Definition: loggerrepository.h:43
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:51
virtual void fireRemoveAppenderEvent(const Logger *logger, const Appender *appender)
Definition: loggerrepository.h:143
virtual void setThreshold(const LogString &val)=0
Another form of setThreshold accepting a string parameter instead of a Level.
virtual void ensureIsConfigured(std::function< void()> configurator)=0
Call configurator if not yet configured.
virtual bool isConfigured()=0
virtual void fireAddAppenderEvent(const Logger *logger, const Appender *appender)
Definition: loggerrepository.h:141
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:33
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:39
virtual void resetConfiguration()=0
virtual LoggerList getCurrentLoggers() const =0
This is the central class in the log4cxx package.
Definition: log4cxx/logger.h:51
virtual LoggerPtr exists(const LogString &name)=0
virtual LoggerPtr getRootLogger() const =0
base class for java-like objects.
Definition: object.h:106
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:26
virtual void emitNoAppenderWarning(const Logger *logger)=0
virtual ~LoggerRepository()
Definition: loggerrepository.h:51
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158