Apache log4cxx
Version 0.12.1
|
A LoggerRepository
is used to create and retrieve Loggers
.
More...
#include <loggerrepository.h>
Public Member Functions | |
virtual | ~LoggerRepository () |
virtual void | addHierarchyEventListener (const HierarchyEventListenerPtr &listener)=0 |
Add a HierarchyEventListener event to the repository. More... | |
virtual bool | isDisabled (int level) const =0 |
Is the repository disabled for a given level? The answer depends on the repository threshold and the level parameter. More... | |
virtual void | setThreshold (const LevelPtr &level)=0 |
Set the repository-wide threshold. More... | |
virtual void | setThreshold (const LogString &val)=0 |
Another form of setThreshold accepting a string parameter instead of a Level . More... | |
virtual void | emitNoAppenderWarning (const Logger *logger)=0 |
virtual const LevelPtr & | getThreshold () const =0 |
Get the repository-wide threshold. More... | |
virtual LoggerPtr | getLogger (const LogString &name)=0 |
virtual LoggerPtr | getLogger (const LogString &name, const spi::LoggerFactoryPtr &factory)=0 |
virtual LoggerPtr | getRootLogger () const =0 |
virtual LoggerPtr | exists (const LogString &name)=0 |
virtual void | shutdown ()=0 |
virtual LoggerList | getCurrentLoggers () const =0 |
virtual void | fireAddAppenderEvent (const Logger *logger, const Appender *appender)=0 |
virtual void | resetConfiguration ()=0 |
virtual bool | isConfigured ()=0 |
virtual void | setConfigured (bool configured)=0 |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
A LoggerRepository
is used to create and retrieve Loggers
.
The relation between loggers in a repository depends on the repository but typically loggers are arranged in a named hierarchy.
In addition to the creational methods, a LoggerRepository
can be queried for existing loggers, can act as a point of registry for events related to loggers.
|
inlinevirtual |
|
pure virtual |
Add a HierarchyEventListener event to the repository.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Get the repository-wide threshold.
See setThreshold for an explanation.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Is the repository disabled for a given level? The answer depends on the repository threshold and the level
parameter.
See also setThreshold method.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Set the repository-wide threshold.
All logging requests below the threshold are immediately dropped. By default, the threshold is set to Level::getAll()
which has the lowest possible rank.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Another form of setThreshold accepting a string parameter instead of a Level
.
Implemented in log4cxx::Hierarchy.
|
pure virtual |
Implemented in log4cxx::Hierarchy.