xdoclet.ant
Class AntLogFactory
java.lang.Object
|
+--org.apache.commons.logging.LogFactory
|
+--org.apache.commons.logging.impl.LogFactoryImpl
|
+--xdoclet.ant.AntLogFactory
- public class AntLogFactory
- extends LogFactoryImpl
A LogFactory that returns a Log that uses Ant's logging mechanism.
Ant's Logging API does not
have the concept of categories. The output level is globally set, and it works as
if there was only one "Category". The Log objects will prepend the logger name
to all output messages.
- Version:
- $Revision: 1.7 $
- Author:
- Aslak Hellesøy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntLogFactory
public AntLogFactory()
getInstance
public final Log getInstance(Class clazz)
throws LogConfigurationException
- Gets a Log instance for a class.
- Overrides:
getInstance
in class LogFactoryImpl
- Parameters:
clazz
- the Class for which the Log is retrieved.
- Returns:
- a Log instance.
- Throws:
LogConfigurationException
- if the Log object could not be created.
getInstance
public final Log getInstance(String name)
throws LogConfigurationException
- Gets a Log instance for a String.
- Overrides:
getInstance
in class LogFactoryImpl
- Parameters:
name
- the String for which the Log is retrieved.
- Returns:
- a Log instance.
- Throws:
LogConfigurationException
- if the Log object could not be created.
Copyright © 2000-2003 XDoclet Team. All Rights Reserved.