org.mortbay.log
Class Factory

java.lang.Object
  extended byorg.apache.commons.logging.LogFactory
      extended byorg.mortbay.log.Factory

public class Factory
extends org.apache.commons.logging.LogFactory

Commons Logging Factory for org.mortbay.log Returns a static default log, unless an alternate Log implementation has been set as an attribute keyed by the classname or other name of the log. If the name of the attibute ends with '.*' it is assumed to be a name prefix match. Attributes with string values are treated as references to other attributes. This class needs to be configured in the META-INF/services directory (see build.xml for example) for automatic discovery. Or it can be configured with the system property: -Dorg.apache.commons.logging.LogFactory=org.mortbay.log.Factory


Field Summary
 
Fields inherited from class org.apache.commons.logging.LogFactory
FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY
 
Constructor Summary
Factory()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String n)
           
 java.lang.String[] getAttributeNames()
           
 org.apache.commons.logging.Log getInstance(java.lang.Class c)
           
 org.apache.commons.logging.Log getInstance(java.lang.String name)
           
 void release()
           
 void removeAttribute(java.lang.String n)
           
 void setAttribute(java.lang.String n, java.lang.Object v)
           
 
Methods inherited from class org.apache.commons.logging.LogFactory
getFactory, getLog, getLog, release, releaseAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String n)

getAttributeNames

public java.lang.String[] getAttributeNames()

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.Class c)
                                           throws org.apache.commons.logging.LogConfigurationException
Throws:
org.apache.commons.logging.LogConfigurationException

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.String name)
                                           throws org.apache.commons.logging.LogConfigurationException
Throws:
org.apache.commons.logging.LogConfigurationException

release

public void release()

removeAttribute

public void removeAttribute(java.lang.String n)

setAttribute

public void setAttribute(java.lang.String n,
                         java.lang.Object v)


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.