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 | Method and Description |
---|---|
protected static java.lang.ClassLoader |
LogFactory.directGetContextClassLoader()
Return the thread context class loader if available; otherwise return null.
|
protected static java.lang.ClassLoader |
LogFactory.getContextClassLoader()
Returns the current context classloader.
|
private static java.lang.ClassLoader |
LogFactory.getContextClassLoaderInternal()
Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class.
|
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. |
abstract Log |
LogFactory.getInstance(java.lang.Class clazz)
Convenience method to derive a name from the specified class and
call
getInstance(String) with it. |
abstract Log |
LogFactory.getInstance(java.lang.String name)
Construct (if necessary) and return a
Log instance,
using the factory's current set of configuration attributes. |
static Log |
LogFactory.getLog(java.lang.Class clazz)
Convenience method to return a named logger, without the application
having to care about factories.
|
static Log |
LogFactory.getLog(java.lang.String name)
Convenience method to return a named logger, without the application
having to care about factories.
|
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 Log |
LogFactoryImpl.createLogFromClass(java.lang.String logAdapterClassName,
java.lang.String logCategory,
boolean affectState)
Attempts to load the given class, find a suitable constructor,
and instantiate an instance of Log.
|
private Log |
LogFactoryImpl.discoverLogImplementation(java.lang.String logCategory)
Attempts to create a Log instance for the given category name.
|
private java.lang.ClassLoader |
LogFactoryImpl.getBaseClassLoader()
Return the classloader from which we should try to load the logging
adapter classes.
|
protected static java.lang.ClassLoader |
LogFactoryImpl.getContextClassLoader()
Gets the context classloader.
|
private static java.lang.ClassLoader |
LogFactoryImpl.getContextClassLoaderInternal()
Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class.
|
Log |
LogFactoryImpl.getInstance(java.lang.Class clazz)
Convenience method to derive a name from the specified class and
call
getInstance(String) with it. |
Log |
LogFactoryImpl.getInstance(java.lang.String name)
Construct (if necessary) and return a
Log instance,
using the factory's current set of configuration attributes. |
protected java.lang.reflect.Constructor |
LogFactoryImpl.getLogConstructor()
Deprecated.
Never invoked by this class; subclasses should not assume
it will be.
|
private void |
LogFactoryImpl.handleFlawedHierarchy(java.lang.ClassLoader badClassLoader,
java.lang.Class badClass)
Report a problem loading the log adapter, then either return
(if the situation is considered recoverable) or throw a
LogConfigurationException.
|
protected Log |
LogFactoryImpl.newInstance(java.lang.String name)
Create and return a new
Log
instance for the specified name. |