public class LogFactoryImpl
extends org.apache.commons.logging.LogFactory
Modifier and Type | Field and Description |
---|---|
private LoggerAdapter<org.apache.commons.logging.Log> |
adapter |
private java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> |
attributes |
Constructor and Description |
---|
LogFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.String[] |
getAttributeNames() |
org.apache.commons.logging.Log |
getInstance(java.lang.Class clazz) |
org.apache.commons.logging.Log |
getInstance(java.lang.String name) |
void |
release()
This method is supposed to clear all loggers.
|
void |
removeAttribute(java.lang.String name) |
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
private final LoggerAdapter<org.apache.commons.logging.Log> adapter
private final java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> attributes
public org.apache.commons.logging.Log getInstance(java.lang.String name) throws org.apache.commons.logging.LogConfigurationException
getInstance
in class org.apache.commons.logging.LogFactory
org.apache.commons.logging.LogConfigurationException
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in class org.apache.commons.logging.LogFactory
public java.lang.String[] getAttributeNames()
getAttributeNames
in class org.apache.commons.logging.LogFactory
public org.apache.commons.logging.Log getInstance(java.lang.Class clazz) throws org.apache.commons.logging.LogConfigurationException
getInstance
in class org.apache.commons.logging.LogFactory
org.apache.commons.logging.LogConfigurationException
public void release()
release
in class org.apache.commons.logging.LogFactory
public void removeAttribute(java.lang.String name)
removeAttribute
in class org.apache.commons.logging.LogFactory
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in class org.apache.commons.logging.LogFactory