org.mule.module.logging
Class MuleLogFactory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.apache.commons.logging.impl.SLF4JLogFactory
          extended by org.mule.module.logging.MuleLogFactory

public class MuleLogFactory
extends SLF4JLogFactory


Field Summary
static String LOG_HANDLER_THREAD_NAME
           
protected static Integer NO_CCL_CLASSLOADER
           
protected  ReferenceQueue<ClassLoader> referenceQueue
           
protected  Map<PhantomReference<ClassLoader>,Integer> refs
           
protected  ConcurrentHashMap<Integer,ConcurrentMap<String,Log>> repository
           
 
Fields inherited from class org.apache.commons.logging.impl.SLF4JLogFactory
attributes, LOG_PROPERTY
 
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
MuleLogFactory()
           
 
Method Summary
protected  void createLoggerReferenceHandler()
           
 Log getInstance(String name)
           Construct (if necessary) and return a Log instance, using the factory's current set of configuration attributes.
 
Methods inherited from class org.apache.commons.logging.impl.SLF4JLogFactory
getAttribute, getAttributeNames, getInstance, release, removeAttribute, setAttribute
 
Methods inherited from class org.apache.commons.logging.LogFactory
createFactory, directGetContextClassLoader, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, 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
 

Field Detail

LOG_HANDLER_THREAD_NAME

public static final String LOG_HANDLER_THREAD_NAME
See Also:
Constant Field Values

repository

protected ConcurrentHashMap<Integer,ConcurrentMap<String,Log>> repository

NO_CCL_CLASSLOADER

protected static final Integer NO_CCL_CLASSLOADER

referenceQueue

protected ReferenceQueue<ClassLoader> referenceQueue

refs

protected Map<PhantomReference<ClassLoader>,Integer> refs
Constructor Detail

MuleLogFactory

public MuleLogFactory()
Method Detail

createLoggerReferenceHandler

protected void createLoggerReferenceHandler()

getInstance

public Log getInstance(String name)
                throws LogConfigurationException
Description copied from class: LogFactory

Construct (if necessary) and return a Log instance, using the factory's current set of configuration attributes.

NOTE - Depending upon the implementation of the LogFactory you are using, the Log instance you are returned may or may not be local to the current application, and may or may not be returned again on a subsequent call with the same name argument.

Overrides:
getInstance in class SLF4JLogFactory
Parameters:
name - Logical name of the Log instance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)
Throws:
LogConfigurationException - if a suitable Log instance cannot be returned


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.