org.norther.tammi.core.logger.jcl
Class CommonsLogFactory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.norther.tammi.core.logger.jcl.CommonsLogFactory

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

A log factory for commons logging.

Author:
Ilkka Priha

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
CommonsLogFactory()
          Constructs a new factory.
 
Method Summary
 Object getAttribute(String name)
           
 String[] getAttributeNames()
           
 org.apache.commons.logging.Log getInstance(Class clazz)
           
 org.apache.commons.logging.Log getInstance(String name)
           
 MBeanServer getMBeanServer()
          Gets the MBean server.
 void release()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setMBeanServer(MBeanServer server)
          Sets the MBean server.
 
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
 

Constructor Detail

CommonsLogFactory

public CommonsLogFactory()
Constructs a new factory.

Method Detail

getAttribute

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

getAttributeNames

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

removeAttribute

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

setAttribute

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

getInstance

public org.apache.commons.logging.Log getInstance(Class clazz)
                                           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 name)
                                           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

getMBeanServer

public MBeanServer getMBeanServer()
Gets the MBean server.

Returns:
the MBean server.

setMBeanServer

public void setMBeanServer(MBeanServer server)
Sets the MBean server.

Parameters:
server - the MBean server.


Copyright © 2004 The Norther Organization. All rights reserved.