org.apache.avalon.logging.logkit
Class DefaultLoggingManager
java.lang.Object
org.apache.avalon.logging.logkit.DefaultLoggingManager
- All Implemented Interfaces:
- LoggingManager
- public class DefaultLoggingManager
- extends Object
- implements LoggingManager
A LoggerManager
interface declares operation supporting
the management of a logging hierarchy.
- Author:
- Avalon Development Team
Fields inherited from interface org.apache.avalon.logging.provider.LoggingManager |
KEY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FORMAT
public static final String DEFAULT_FORMAT
- See Also:
- Constant Field Values
FORMAT
public static final Formatter FORMAT
CONSOLE
public static final Formatter CONSOLE
DefaultLoggingManager
public DefaultLoggingManager(Logger logger,
LogTargetManager targets,
CategoriesDirective categories,
String channel,
boolean debug)
throws Exception
- Creation of a new logging manager using based on LogKit.
- Parameters:
logger
- boostrap logging channeltargets
- the logging targets managercategories
- the initial logging categorieschannel
- the logging category to be used for internal log messagedebug
- a debug flag
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 root,
CategoriesDirective directive)
- 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:
root
- the category base pathdirective
- a category directive to add
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.