org.nuiton.log
Class LutinLogFactory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.nuiton.log.LutinLogFactory

public class LutinLogFactory
extends org.apache.commons.logging.LogFactory

Author:
poussin

Field Summary
protected  long DefaultActiveProgressMonitorTime
           
protected  long DefaultTimeout
           
protected  CategorisedListenerSet<LutinLogListener> listeners
           
protected  org.apache.commons.logging.LogFactory parentFactory
           
 
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
LutinLogFactory()
           
 
Method Summary
 void addLutinLogListener(LutinLogListener l)
          Add listener on all LutinLog
 void addLutinLogListener(LutinLog log, LutinLogListener l)
          Add listener on specific LutinLog
 Object getAttribute(String arg0)
           
 String[] getAttributeNames()
           
 long getDefaultActiveProgressMonitorTime()
           
 long getDefaultTimeout()
           
static LutinLogFactory getInstance()
           
 org.apache.commons.logging.Log getInstance(Class arg0)
           
 org.apache.commons.logging.Log getInstance(String arg0)
           
static LutinLog getLutinLog(Class<?> clazz)
           
static LutinLog getLutinLog(String cat)
           
protected  org.apache.commons.logging.LogFactory getParentFactory()
          Return le réel commons-logging a utiliser
 Timer getTimer()
           
 void release()
           
 void removeAttribute(String arg0)
           
 void removeLutinLogListener(LutinLogListener l)
          Add listener on all LutinLog
 void removeLutinLogListener(LutinLog log, LutinLogListener l)
          Add listener on specific LutinLog
 void setAttribute(String arg0, Object arg1)
           
 void setDefaultActiveProgressMonitorTime(long defaultActiveProgressMonitorTime)
           
 void setDefaultTimeout(long defaultTimeout)
           
 
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

parentFactory

protected org.apache.commons.logging.LogFactory parentFactory

listeners

protected CategorisedListenerSet<LutinLogListener> listeners

DefaultActiveProgressMonitorTime

protected long DefaultActiveProgressMonitorTime

DefaultTimeout

protected long DefaultTimeout
Constructor Detail

LutinLogFactory

public LutinLogFactory()
Method Detail

getInstance

public static LutinLogFactory getInstance()

getLutinLog

public static LutinLog getLutinLog(Class<?> clazz)

getLutinLog

public static LutinLog getLutinLog(String cat)

getDefaultActiveProgressMonitorTime

public long getDefaultActiveProgressMonitorTime()
Returns:
the defaultActiveProgressMonitorTime

setDefaultActiveProgressMonitorTime

public void setDefaultActiveProgressMonitorTime(long defaultActiveProgressMonitorTime)
Parameters:
defaultActiveProgressMonitorTime - the defaultActiveProgressMonitorTime to set

getDefaultTimeout

public long getDefaultTimeout()
Returns:
the defaultTimeout

setDefaultTimeout

public void setDefaultTimeout(long defaultTimeout)
Parameters:
defaultTimeout - the defaultTimeout to set

addLutinLogListener

public void addLutinLogListener(LutinLogListener l)
Add listener on all LutinLog

Parameters:
l -

addLutinLogListener

public void addLutinLogListener(LutinLog log,
                                LutinLogListener l)
Add listener on specific LutinLog

Parameters:
log -
l -

removeLutinLogListener

public void removeLutinLogListener(LutinLogListener l)
Add listener on all LutinLog

Parameters:
l -

removeLutinLogListener

public void removeLutinLogListener(LutinLog log,
                                   LutinLogListener l)
Add listener on specific LutinLog

Parameters:
log -
l -

getParentFactory

protected org.apache.commons.logging.LogFactory getParentFactory()
Return le réel commons-logging a utiliser

Returns:
the parentFactory

getAttribute

public Object getAttribute(String arg0)
Specified by:
getAttribute in class org.apache.commons.logging.LogFactory

getAttributeNames

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

getInstance

public org.apache.commons.logging.Log getInstance(Class arg0)
                                           throws org.apache.commons.logging.LogConfigurationException
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
Throws:
org.apache.commons.logging.LogConfigurationException

getInstance

public org.apache.commons.logging.Log getInstance(String arg0)
                                           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()
Specified by:
release in class org.apache.commons.logging.LogFactory

removeAttribute

public void removeAttribute(String arg0)
Specified by:
removeAttribute in class org.apache.commons.logging.LogFactory

setAttribute

public void setAttribute(String arg0,
                         Object arg1)
Specified by:
setAttribute in class org.apache.commons.logging.LogFactory

getTimer

public Timer getTimer()
Returns:
the logger timer


Copyright © 2004-2010 CodeLutin. All Rights Reserved.