org.codehaus.mojo.tomcat.log
Class MavenLogFactory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.codehaus.mojo.tomcat.log.MavenLogFactory

public class MavenLogFactory
extends LogFactory

A JCL log factory implementation that delegates to a Maven log.

The Maven log that logs produced by this class delegate to is configured by setting the log factory attribute maven.log.

Author:
Mark Hobson

Field Summary
 
Fields inherited from class org.apache.commons.logging.LogFactory
DIAGNOSTICS_DEST_PROPERTY, factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, HASHTABLE_IMPLEMENTATION_PROPERTY, nullClassLoaderFactory, PRIORITY_KEY, SERVICE_ID, TCCL_KEY
 
Constructor Summary
MavenLogFactory()
           
 
Method Summary
 Object getAttribute(String name)
           
 String[] getAttributeNames()
           
 Log getInstance(Class clazz)
           
 Log getInstance(String name)
           
 void release()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class org.apache.commons.logging.LogFactory
createFactory, directGetContextClassLoader, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, isDiagnosticsEnabled, logRawDiagnostic, newFactory, newFactory, objectId, release, releaseAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenLogFactory

public MavenLogFactory()
Method Detail

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in class LogFactory

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in class LogFactory

getInstance

public Log getInstance(Class clazz)
                throws LogConfigurationException
Specified by:
getInstance in class LogFactory
Throws:
LogConfigurationException

getInstance

public Log getInstance(String name)
                throws LogConfigurationException
Specified by:
getInstance in class LogFactory
Throws:
LogConfigurationException

release

public void release()
Specified by:
release in class LogFactory

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in class LogFactory

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in class LogFactory


Copyright © 2005-2011 Codehaus. All Rights Reserved.