org.apache.avalon.logging.logkit
Interface FormatterFactory
- All Known Implementing Classes:
- DefaultFormatterFactory
- public interface FormatterFactory
Factory for Formatters.
- Version:
- $Revision: 1.2 $ $Date: 2004/02/24 21:55:39 $
- Author:
- Avalon Development Team
DEFAULT_FORMAT
public static final String DEFAULT_FORMAT
- See Also:
- Constant Field Values
createFormatter
public Formatter createFormatter(Configuration config)
throws IllegalArgumentException
- Creation of a new formatter using a supplied configuration.
- Parameters:
config
- the formatter configuration
- Returns:
- the formatter instance
- Throws:
IllegalArgumentException
- if the formatter type is unknown
createFormatter
public Formatter createFormatter(String type,
String pattern)
- Creation of a new formatter.
- Parameters:
type
- the formatter typepattern
- the formatter pattern
- Returns:
- the formatter
Copyright © The Apache Software Foundation. All Rights Reserved.