org.apache.avalon.excalibur.logger.factory
Class ConsoleTargetFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
org.apache.avalon.excalibur.logger.factory.ConsoleTargetFactory
- All Implemented Interfaces:
- LogTargetFactory, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled
public class ConsoleTargetFactory
- extends AbstractTargetFactory
ConsoleTargetFactory class.
This factory is able to create a console target which can be used for
debugging components.
<console id="console">
<format type="avalon|raw|pattern|extended">pattern to be used if needed</format>
</console>
Some explanations about the Elements used in the configuration:
- <format>
-
The type attribute of the pattern element denotes the type of
Formatter to be used and according to it the pattern to use for.
This elements defaults to:
%7.7{priority} %5.5{time} [%8.8{category}] (%{context}): %{message}\\n%{throwable}
- Since:
- 1.2
- Version:
- CVS $Revision: 1.1 $ $Date: 2004/03/16 09:07:57 $
- Author:
- Avalon Development Team
Method Summary |
org.apache.log.LogTarget |
createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
Create a LogTarget based on a Configuration |
protected org.apache.log.format.Formatter |
getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleTargetFactory
public ConsoleTargetFactory()
createTarget
public final org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Create a LogTarget based on a Configuration
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
getFormatter
protected org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
Copyright © 1997-2008 Apache Software Foundation. All Rights Reserved.