Classes | Public Member Functions | Static Public Member Functions

LoggerRepository Class Reference

A LoggerRepository is used to create and retrieve Loggers. More...

Inherits log4cxx::helpers::Object.

Inherited by Hierarchy [virtual].

List of all members.

Classes

class  ClazzLoggerRepository

Public Member Functions

virtual const helpers::ClassgetClass () const
virtual ~LoggerRepository ()
virtual void addHierarchyEventListener (const HierarchyEventListenerPtr &listener)=0
 Add a HierarchyEventListener event to the repository.
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.
virtual void setThreshold (const LevelPtr &level)=0
 Set the repository-wide threshold.
virtual void setThreshold (const LogString &val)=0
 Another form of setThreshold accepting a string parameter instead of a Level.
virtual void emitNoAppenderWarning (const LoggerPtr &logger)=0
virtual const LevelPtrgetThreshold () const =0
 Get the repository-wide threshold.
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 LoggerPtr &logger, const AppenderPtr &appender)=0
virtual void resetConfiguration ()=0
virtual bool isConfigured ()=0
virtual void setConfigured (bool configured)=0

Static Public Member Functions

static const helpers::ClassgetStaticClass ()
static const
log4cxx::helpers::ClassRegistration
registerClass ()

Detailed Description

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.


Constructor & Destructor Documentation

virtual ~LoggerRepository (  )  [inline, virtual]

Member Function Documentation

virtual void addHierarchyEventListener ( const HierarchyEventListenerPtr listener  )  [pure virtual]

Add a HierarchyEventListener event to the repository.

virtual void emitNoAppenderWarning ( const LoggerPtr logger  )  [pure virtual]
virtual LoggerPtr exists ( const LogString name  )  [pure virtual]
virtual void fireAddAppenderEvent ( const LoggerPtr logger,
const AppenderPtr appender 
) [pure virtual]
virtual const helpers::Class& getClass (  )  const [virtual]

Reimplemented from Object.

virtual LoggerList getCurrentLoggers (  )  const [pure virtual]
virtual LoggerPtr getLogger ( const LogString name  )  [pure virtual]
virtual LoggerPtr getLogger ( const LogString name,
const spi::LoggerFactoryPtr factory 
) [pure virtual]
virtual LoggerPtr getRootLogger (  )  const [pure virtual]
static const helpers::Class& getStaticClass (  )  [static]

Reimplemented from Object.

virtual const LevelPtr& getThreshold (  )  const [pure virtual]

Get the repository-wide threshold.

See setThreshold for an explanation.

virtual bool isConfigured (  )  [pure virtual]
virtual bool isDisabled ( int  level  )  const [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.

static const log4cxx::helpers::ClassRegistration& registerClass (  )  [static]

Reimplemented from Object.

virtual void resetConfiguration (  )  [pure virtual]
virtual void setConfigured ( bool  configured  )  [pure virtual]
virtual void setThreshold ( const LogString val  )  [pure virtual]

Another form of setThreshold accepting a string parameter instead of a Level.

virtual void setThreshold ( const LevelPtr level  )  [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.

virtual void shutdown (  )  [pure virtual]

The documentation for this class was generated from the following file: