org.mortbay.log
Class Factory
org.apache.commons.logging.LogFactory
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
getAttribute
public Object getAttribute(String n)
getAttributeNames
public String[] getAttributeNames()
getInstance
public Log getInstance(Class c)
throws LogConfigurationException
getInstance
public Log getInstance(String name)
throws LogConfigurationException
release
public void release()
removeAttribute
public void removeAttribute(String n)
setAttribute
public void setAttribute(String n,
Object v)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.