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

Field Summary
 
Fields inherited from class org.apache.commons.logging.impl.LogFactoryImpl
attributes, instances, LOG_DEFAULT, LOG_PROPERTY, LOG_PROPERTY_OLD, logConstructor, logConstructorSignature, logMethod, logMethodSignature, proxyFactory
 
Fields inherited from class org.apache.commons.logging.LogFactory
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, SERVICE_ID
 
Constructor Summary
AntLogFactory()
           
 
Method Summary
 Log getInstance(Class clazz)
          Gets a Log instance for a class.
 Log getInstance(String name)
          Gets a Log instance for a String.
 
Methods inherited from class org.apache.commons.logging.impl.LogFactoryImpl
getAttribute, getAttributeNames, getLogConstructor, guessConfig, isJdk14Available, isLog4JAvailable, newInstance, release, removeAttribute, setAttribute
 
Methods inherited from class org.apache.commons.logging.LogFactory
getContextClassLoader, getFactory, getLog, getLog, newFactory, releaseAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntLogFactory

public AntLogFactory()
Method Detail

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.