Class LogFactoryImpl


  • public class LogFactoryImpl
    extends org.apache.commons.logging.LogFactory
    Log4j binding for Commons Logging.
    • Field Summary

      • 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 
      Constructor Description
      LogFactoryImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)  
      java.lang.String[] getAttributeNames()  
      org.apache.commons.logging.Log getInstance​(java.lang.Class clazz)  
      org.apache.commons.logging.Log getInstance​(java.lang.String name)  
      void release()
      This method is supposed to clear all loggers.
      void removeAttribute​(java.lang.String name)  
      void setAttribute​(java.lang.String name, java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogFactoryImpl

        public LogFactoryImpl()
    • Method Detail

      • getInstance

        public org.apache.commons.logging.Log getInstance​(java.lang.String name)
                                                   throws org.apache.commons.logging.LogConfigurationException
        Specified by:
        getInstance in class org.apache.commons.logging.LogFactory
        Throws:
        org.apache.commons.logging.LogConfigurationException
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in class org.apache.commons.logging.LogFactory
      • getAttributeNames

        public java.lang.String[] getAttributeNames()
        Specified by:
        getAttributeNames in class org.apache.commons.logging.LogFactory
      • getInstance

        public org.apache.commons.logging.Log getInstance​(java.lang.Class clazz)
                                                   throws org.apache.commons.logging.LogConfigurationException
        Specified by:
        getInstance in class org.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 class org.apache.commons.logging.LogFactory
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
        Specified by:
        removeAttribute in class org.apache.commons.logging.LogFactory
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        setAttribute in class org.apache.commons.logging.LogFactory