Package org.apache.logging.log4j.jcl
Class LogFactoryImpl
- java.lang.Object
-
- org.apache.commons.logging.LogFactory
-
- org.apache.logging.log4j.jcl.LogFactoryImpl
-
public class LogFactoryImpl extends org.apache.commons.logging.LogFactory
Log4j binding for Commons Logging.
-
-
Constructor Summary
Constructors Constructor Description LogFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
String[]
getAttributeNames()
org.apache.commons.logging.Log
getInstance(Class clazz)
org.apache.commons.logging.Log
getInstance(String name)
void
release()
This method is supposed to clear all loggers.void
removeAttribute(String name)
void
setAttribute(String name, Object value)
-
-
-
Method Detail
-
getInstance
public org.apache.commons.logging.Log getInstance(String name) throws org.apache.commons.logging.LogConfigurationException
- Specified by:
getInstance
in classorg.apache.commons.logging.LogFactory
- Throws:
org.apache.commons.logging.LogConfigurationException
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in classorg.apache.commons.logging.LogFactory
-
getAttributeNames
public String[] getAttributeNames()
- Specified by:
getAttributeNames
in classorg.apache.commons.logging.LogFactory
-
getInstance
public org.apache.commons.logging.Log getInstance(Class clazz) throws org.apache.commons.logging.LogConfigurationException
- Specified by:
getInstance
in classorg.apache.commons.logging.LogFactory
- Throws:
org.apache.commons.logging.LogConfigurationException
-
release
public void release()
This method is supposed to clear all loggers. In this implementation it will clear all the logger wrappers but the loggers managed by the underlying logger context will not be.- Specified by:
release
in classorg.apache.commons.logging.LogFactory
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in classorg.apache.commons.logging.LogFactory
-
-