org.mortbay.log

Class Factory

public class Factory extends 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
Constructor Summary
Factory()
Method Summary
ObjectgetAttribute(String n)
String[]getAttributeNames()
LoggetInstance(Class c)
LoggetInstance(String name)
voidrelease()
voidremoveAttribute(String n)
voidsetAttribute(String n, Object v)

Constructor Detail

Factory

public Factory()

Method Detail

getAttribute

public Object getAttribute(String n)

getAttributeNames

public String[] getAttributeNames()

getInstance

public Log getInstance(Class c)

getInstance

public Log getInstance(String name)

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.