org.apache.avalon.logging.impl
Class LoggerParameter
java.lang.Object
org.apache.avalon.util.criteria.Parameter
org.apache.avalon.logging.impl.LoggerParameter
- All Implemented Interfaces:
- Serializable
- public class LoggerParameter
- extends Parameter
A parameter descriptor that supports transformation of a
a string to a Logger instance.
- Version:
- $Revision: 1.3 $
- Author:
- Avalon Development Team
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerParameter
public LoggerParameter(String key,
Logger logger)
- Creation of a new logger parameter. The parameter support
convertion of strings in the form "debug", "info", "warn",
"error", "fatal" and "none" to an equivalent logger.
- Parameters:
key
- the parameter keylogger
- the default logger
resolve
public Object resolve(Object value)
throws CriteriaException
- Resolve a supplied string to a configuration
- Parameters:
value
- the value to resolve
- Throws:
CriteriaException
- if an error occurs
Copyright © The Apache Software Foundation. All Rights Reserved.