org.apache.avalon.logging.log4j
Class LoggingManagerImpl

java.lang.Object
  extended byorg.apache.avalon.logging.log4j.LoggingManagerImpl
All Implemented Interfaces:
LoggingManager

public class LoggingManagerImpl
extends Object
implements LoggingManager

A LoggerManager that supports the management of a logging hierarchy.

Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.avalon.logging.provider.LoggingManager
KEY
 
Method Summary
 void addCategories(CategoriesDirective descriptor)
          Add a set of category entries using the supplied categories descriptor.
 void addCategories(String path, CategoriesDirective descriptor)
          Add a set of category entries relative to the supplied base category path, using the supplied descriptor as the definition of subcategories.
 Logger getLoggerForCategory(String category)
          Return the Logger for the specified category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addCategories

public void addCategories(CategoriesDirective descriptor)
Add a set of category entries using the supplied categories descriptor.

Specified by:
addCategories in interface LoggingManager
Parameters:
descriptor - a set of category descriptors to be added under the path

addCategories

public void addCategories(String path,
                          CategoriesDirective descriptor)
Add a set of category entries relative to the supplied base category path, using the supplied descriptor as the definition of subcategories.

Specified by:
addCategories in interface LoggingManager
Parameters:
path - the category base path
descriptor - a set of category descriptors to be added under the base path

getLoggerForCategory

public Logger getLoggerForCategory(String category)
Return the Logger for the specified category.

Specified by:
getLoggerForCategory in interface LoggingManager
Parameters:
category - the category path
Returns:
the logging channel


Copyright © The Apache Software Foundation. All Rights Reserved.