18#ifndef _LOG4CXX_SPI_LOG_REPOSITORY_H
19#define _LOG4CXX_SPI_LOG_REPOSITORY_H
116 const
spi::LoggerFactoryPtr& factory = {}) = 0;
Implement this interface for your own strategies for outputting log statements.
Definition appender.h:51
This is the central class in the log4cxx package.
Definition log4cxx/logger.h:52
base class for java-like objects.
Definition object.h:101
A LoggerRepository is used to create and retrieve Loggers.
Definition loggerrepository.h:43
virtual void removeHierarchyEventListener(const spi::HierarchyEventListenerPtr &listener)=0
Remove listener from the repository.
virtual void setThreshold(const LevelPtr &newLevel)=0
Enable logging for logging requests with level newLevel or higher.
virtual LoggerPtr getRootLogger() const =0
The logger that cannot be retrieved by name.
virtual LoggerPtr getLogger(const LogString &name, const spi::LoggerFactoryPtr &factory={})=0
Retrieve the name Logger instance.
virtual void updateChildren(const Logger *parent)=0
Refresh the configuration of all loggers where parent is somewhere in their ancestor chain.
virtual bool removeLogger(const LogString &name, bool ifNotUsed=true)=0
Remove the name Logger from the repository.
virtual LoggerList getCurrentLoggers() const =0
All the loggers currently defined in this repository.
virtual void ensureIsConfigured(std::function< void()> configurator)=0
Call configurator if not yet configured and configurator has not already been tried.
virtual void fireAddAppenderEvent(const Logger *logger, const Appender *appender)
Call addAppenderEvent on all registered listeners.
virtual void shutdown()=0
Close and remove all appenders in all categories including the root logger.
virtual void emitNoAppenderWarning(const Logger *logger)=0
Add a warning to internal debug output that logger does not have any Appender attached.
virtual void setConfigured(bool configured)=0
Set the configured status to true.
virtual LoggerPtr exists(const LogString &name)=0
Does name exist in the repository?
virtual bool isConfigured()=0
The value of the configured status.
virtual void resetConfiguration()=0
Reset all values contained in this repository instance to their default.
virtual void fireRemoveAppenderEvent(const Logger *logger, const Appender *appender)
Call removeAppenderEvent on all registered listeners.
virtual void addHierarchyEventListener(const HierarchyEventListenerPtr &listener)=0
Add listener to the repository.
virtual bool isDisabled(int level) const =0
Is the repository disabled for level?
virtual LevelPtr getThreshold() const =0
The current repository-wide threshold.
std::basic_string< logchar > LogString
Definition logstring.h:51
std::shared_ptr< Level > LevelPtr
Definition optionconverter.h:28
std::shared_ptr< Logger > LoggerPtr
Definition provisionnode.h:28
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:153
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition object.h:147
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141