18 #ifndef _LOG4CXX_SPI_LOG_REPOSITORY_H
19 #define _LOG4CXX_SPI_LOG_REPOSITORY_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
111 #if defined(_MSC_VER)
112 #pragma warning ( pop )
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:57
This is the central class in the log4cxx package.
Definition: logger.h:66
base class for java-like objects.
Definition: object.h:102
A LoggerRepository is used to create and retrieve Loggers.
Definition: loggerrepository.h:48
virtual LoggerPtr getRootLogger() const =0
virtual LoggerPtr getLogger(const LogString &name)=0
virtual LoggerList getCurrentLoggers() const =0
virtual void setThreshold(const LogString &val)=0
Another form of setThreshold accepting a string parameter instead of a Level.
virtual void shutdown()=0
virtual void emitNoAppenderWarning(const Logger *logger)=0
virtual void setConfigured(bool configured)=0
virtual LoggerPtr exists(const LogString &name)=0
virtual bool isConfigured()=0
virtual void resetConfiguration()=0
virtual const LevelPtr & getThreshold() const =0
Get the repository-wide threshold.
virtual void fireAddAppenderEvent(const Logger *logger, const Appender *appender)=0
virtual void addHierarchyEventListener(const HierarchyEventListenerPtr &listener)=0
Add a HierarchyEventListener event to the repository.
virtual void setThreshold(const LevelPtr &level)=0
Set the repository-wide threshold.
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 LoggerPtr getLogger(const LogString &name, const spi::LoggerFactoryPtr &factory)=0
std::shared_ptr< LoggerFactory > LoggerFactoryPtr
Definition: logmanager.h:38
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:27
std::shared_ptr< Logger > LoggerPtr
Definition: defaultloggerfactory.h:26
std::vector< LoggerPtr > LoggerList
Definition: logmanager.h:34
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:26