LoggerRepository Class Reference

Inheritance diagram for LoggerRepository:

Inheritance graph
[legend]
Collaboration diagram for LoggerRepository:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void addHierarchyEventListener (const HierarchyEventListenerPtr &listener)=0
virtual bool isDisabled (int level) const=0
virtual void setThreshold (const LevelPtr &level)=0
virtual void setThreshold (const String &val)=0
virtual const LevelPtrgetThreshold () const=0

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.


Member Function Documentation

virtual void addHierarchyEventListener const HierarchyEventListenerPtr listener  )  [pure virtual]
 

Add a HierarchyEventListener event to the repository.

virtual const LevelPtr& getThreshold  )  const [pure virtual]
 

Get the repository-wide threshold. See setThreshold for an explanation.

Implemented in Hierarchy.

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.

Implemented in Hierarchy.

virtual void setThreshold const String &  val  )  [pure virtual]
 

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

Implemented in Hierarchy.

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::ALL which has the lowest possible rank.

Implemented in Hierarchy.


The documentation for this class was generated from the following file:
  • loggerrepository.h

Copyright © 1999-2004, Apache Software Foundation