Home » SLF4J-1.5.8 » org.apache.commons » logging » impl » [javadoc | source]
public final class: Log4jFactory [javadoc | source]
Deprecated! Per - discussion on COMMONS-DEV, the behind-the-scenes use of this class as a proxy factory has been removed. For 1.0, you can still request it directly if you wish, but it doesn't really do anything useful, and will be removed in 1.1.

Concrete subclass of LogFactory specific to log4j.

Fields inherited from org.apache.commons.logging.LogFactory:
PRIORITY_KEY,  TCCL_KEY,  FACTORY_PROPERTY,  FACTORY_DEFAULT,  FACTORY_PROPERTIES,  SERVICE_ID,  DIAGNOSTICS_DEST_PROPERTY,  HASHTABLE_IMPLEMENTATION_PROPERTY,  factories,  nullClassLoaderFactory,  class$org$apache$commons$logging$LogFactory,  class$java$lang$Thread
 public Log4jFactory() 
Method from org.apache.commons.logging.impl.Log4jFactory Summary:
getAttribute,   getAttributeNames,   getInstance,   getInstance,   release,   removeAttribute,   setAttribute
Methods from org.apache.commons.logging.LogFactory:
access$0,   class$,   createFactory,   directGetContextClassLoader,   getAttribute,   getAttributeNames,   getClassLoader,   getContextClassLoader,   getFactory,   getInstance,   getInstance,   getLog,   getLog,   isDiagnosticsEnabled,   logRawDiagnostic,   newFactory,   newFactory,   objectId,   release,   release,   releaseAll,   removeAttribute,   setAttribute
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.logging.impl.Log4jFactory Detail:
 public Object getAttribute(String name) 
    Return the configuration attribute with the specified name (if any), or null if there is no such attribute.
 public String[] getAttributeNames() 
    Return an array containing the names of all currently defined configuration attributes. If there are no such attributes, a zero length array is returned.
 public Log getInstance(Class clazz) throws LogConfigurationException 
    Convenience method to derive a name from the specified class and call getInstance(String) with it.
 public Log getInstance(String name) throws LogConfigurationException 
 public  void release() 
    Release any internal references to previously created Log instances returned by this factory. This is useful in environments like servlet containers, which implement application reloading by throwing away a ClassLoader. Dangling references to objects in that class loader would prevent garbage collection.
 public  void removeAttribute(String name) 
    Remove any configuration attribute associated with the specified name. If there is no such attribute, no action is taken.
 public  void setAttribute(String name,
    Object value) 
    Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).