org.apache.avalon.excalibur.logger
Class SimpleLogKitManager
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.logger.SimpleLogKitManager
- All Implemented Interfaces:
- Configurable, Contextualizable, LogEnabled, LoggerManager
- public class SimpleLogKitManager
- extends AbstractLogEnabled
- implements LoggerManager, Contextualizable, Configurable
A LoggerManager
that supports the old <logs version="1.0"/>
style logging configuration from
Phoenix.
- Author:
- Eung-ju Park, Peter Donald
Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLogKitManager
public SimpleLogKitManager()
contextualize
public void contextualize(Context context)
throws ContextException
- Contextualize the manager. Requires that the "app.home" entry
be set to a File object that points at the base directory for logs.
- Specified by:
contextualize
in interface Contextualizable
- Parameters:
context
- the context
- Throws:
ContextException
- if missing context entry
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Interpret configuration to build loggers.
- Specified by:
configure
in interface Configurable
- Parameters:
configuration
- the configuration
- Throws:
ConfigurationException
- if malformed configuration
getLoggerForCategory
public Logger getLoggerForCategory(String name)
- Retrieve a logger by name.
- Specified by:
getLoggerForCategory
in interface LoggerManager
- Parameters:
name
- the name of logger
- Returns:
- the specified Logger
getDefaultLogger
public Logger getDefaultLogger()
- Retrieve the root logger.
- Specified by:
getDefaultLogger
in interface LoggerManager
- Returns:
- the root Logger
Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.