Package | Description |
---|---|
org.apache.commons.logging |
Simple wrapper API around multiple logging APIs.
|
org.apache.commons.logging.impl |
Concrete implementations of commons-logging wrapper APIs.
|
Modifier and Type | Field and Description |
---|---|
protected static LogFactory |
LogFactory.nullClassLoaderFactory
Deprecated.
since 1.1.2
|
Modifier and Type | Method and Description |
---|---|
private static LogFactory |
LogFactory.getCachedFactory(java.lang.ClassLoader contextClassLoader)
Check cached factories (keyed by contextClassLoader)
|
static LogFactory |
LogFactory.getFactory()
Construct (if necessary) and return a
LogFactory
instance, using the following ordered lookup procedure to determine
the name of the implementation class to be loaded. |
protected static LogFactory |
LogFactory.newFactory(java.lang.String factoryClass,
java.lang.ClassLoader classLoader)
Method provided for backwards compatibility; see newFactory version that
takes 3 parameters.
|
protected static LogFactory |
LogFactory.newFactory(java.lang.String factoryClass,
java.lang.ClassLoader classLoader,
java.lang.ClassLoader contextClassLoader)
Return a new instance of the specified
LogFactory
implementation class, loaded by the specified class loader. |
Modifier and Type | Method and Description |
---|---|
private static void |
LogFactory.cacheFactory(java.lang.ClassLoader classLoader,
LogFactory factory)
Remember this factory, so later calls to LogFactory.getCachedFactory
can return the previously created object (together with all its
cached Log objects).
|
Modifier and Type | Class and Description |
---|---|
class |
LogFactoryImpl
Concrete subclass of
LogFactory that implements the
following algorithm to dynamically select a logging implementation
class to instantiate a wrapper for:
Use a factory configuration attribute named
org.apache.commons.logging.Log to identify the
requested implementation class.
Use the org.apache.commons.logging.Log system property
to identify the requested implementation class.
If Log4J is available, return an instance of
org.apache.commons.logging.impl.Log4JLogger .
If JDK 1.4 or later is available, return an instance of
org.apache.commons.logging.impl.Jdk14Logger .
Otherwise, return an instance of
org.apache.commons.logging.impl.SimpleLog .
|