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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoggerAdapter<org.apache.commons.logging.Log> private final ConcurrentMap<String, Object> Fields inherited from class org.apache.commons.logging.LogFactory
DIAGNOSTICS_DEST_PROPERTY, factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, HASHTABLE_IMPLEMENTATION_PROPERTY, nullClassLoaderFactory, PRIORITY_KEY, SERVICE_ID, TCCL_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) String[]org.apache.commons.logging.LoggetInstance(Class clazz) org.apache.commons.logging.LoggetInstance(String name) voidrelease()This method is supposed to clear all loggers.voidremoveAttribute(String name) voidsetAttribute(String name, Object value) Methods inherited from class org.apache.commons.logging.LogFactory
createFactory, directGetContextClassLoader, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, handleThrowable, isDiagnosticsEnabled, logRawDiagnostic, newFactory, newFactory, objectId, release, releaseAll
-
Field Details
-
adapter
-
attributes
-
-
Constructor Details
-
LogFactoryImpl
public LogFactoryImpl()
-
-
Method Details
-
getInstance
public org.apache.commons.logging.Log getInstance(String name) throws org.apache.commons.logging.LogConfigurationException - Specified by:
getInstancein classorg.apache.commons.logging.LogFactory- Throws:
org.apache.commons.logging.LogConfigurationException
-
getAttribute
- Specified by:
getAttributein classorg.apache.commons.logging.LogFactory
-
getAttributeNames
- Specified by:
getAttributeNamesin classorg.apache.commons.logging.LogFactory
-
getInstance
public org.apache.commons.logging.Log getInstance(Class clazz) throws org.apache.commons.logging.LogConfigurationException - Specified by:
getInstancein 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:
releasein classorg.apache.commons.logging.LogFactory
-
removeAttribute
- Specified by:
removeAttributein classorg.apache.commons.logging.LogFactory
-
setAttribute
- Specified by:
setAttributein classorg.apache.commons.logging.LogFactory
-