public class MMBaseLoggingFactory
extends org.apache.commons.logging.LogFactory
| Constructor and Description |
|---|
MMBaseLoggingFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
String[] |
getAttributeNames() |
org.apache.commons.logging.Log |
getInstance(Class clazz)
This method first first looks in it's internal cache if there is a existing Log for the given class.
|
org.apache.commons.logging.Log |
getInstance(String category)
This method first first looks in it's internal cache if there is a existing Log with the given name.
|
void |
release()
Release any internal references to previously created
Log
instances returned by this factory. |
void |
removeAttribute(String name)
Remove any configuration attribute associated with the specified name.
|
void |
setAttribute(String name,
Object value)
Set the configuration attribute with the specified name.
|
public Object getAttribute(String name)
getAttribute in class org.apache.commons.logging.LogFactoryname - Name of the attribute to returnnull if there is no such attribute.public String[] getAttributeNames()
getAttributeNames in class org.apache.commons.logging.LogFactorypublic org.apache.commons.logging.Log getInstance(Class clazz) throws org.apache.commons.logging.LogConfigurationException
MMBaseLogger;getInstance in class org.apache.commons.logging.LogFactoryclazz - the class for witch to create a loggerorg.apache.commons.logging.LogConfigurationExceptionpublic org.apache.commons.logging.Log getInstance(String category) throws org.apache.commons.logging.LogConfigurationException
MMBaseLogger;getInstance in class org.apache.commons.logging.LogFactoryorg.apache.commons.logging.LogConfigurationExceptionpublic void release()
Log
instances returned by this factory. This is useful in environments
like servlet containers, which implement application reloading by
throwing away a ClassLoader. Dangling references to objects in that
class loader would prevent garbage collection.release in class org.apache.commons.logging.LogFactorypublic void removeAttribute(String name)
removeAttribute in class org.apache.commons.logging.LogFactoryname - Name of the attribute to removepublic void setAttribute(String name, Object value)
null value is equivalent to calling
removeAttribute(name).setAttribute in class org.apache.commons.logging.LogFactoryname - Name of the attribute to setvalue - Value of the attribute to set, or null
to remove any setting for this attributeMMBase 1.9-SNAPSHOT - ${javadoctimestamp}