org.x4juli
Class JCLFactory

java.lang.Object
  extended byorg.apache.commons.logging.LogFactory
      extended byorg.x4juli.JCLFactory

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

A implementation of org.apache.commons.logging.LogFactory. This class provides a x4juli native access version for the Apache Jakarta Commons Logging API.
To configure you have to:
1) Setup x4juli (Details: X4JuliLogManager).
2) Put commons-logging.jar on appropriate place on the classpath
3a) Use a system property -Dorg.apache.commons.logging.LogFactory=org.x4juli.JCLFactory
or
3b) Use a config file commons-logging.properties on appropriate place on the classpath which includes org.apache.commons.logging.LogFactory=org.x4juli.JCLFactory

Since:
0.6
Author:
Boris Unckel

Field Summary
protected  java.util.Map instances
          The Log instances that have already been created, keyed by logger name.
private static boolean juliAvailable
           
private static java.util.logging.LogManager manager
           
 
Fields inherited from class org.apache.commons.logging.LogFactory
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, HASHTABLE_IMPLEMENTATION_PROPERTY, SERVICE_ID
 
Constructor Summary
JCLFactory()
          Create a new Factory.
 
Method Summary
 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()
          
 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
getContextClassLoader, getFactory, getLog, getLog, newFactory, release, releaseAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

private static java.util.logging.LogManager manager

juliAvailable

private static final boolean juliAvailable

instances

protected java.util.Map instances
The Log instances that have already been created, keyed by logger name.

Constructor Detail

JCLFactory

public JCLFactory()
Create a new Factory.

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

Since:
0.6

getAttributeNames

public java.lang.String[] getAttributeNames()

Since:

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
                                           throws org.apache.commons.logging.LogConfigurationException

Throws:
org.apache.commons.logging.LogConfigurationException
Since:

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.String name)
                                           throws org.apache.commons.logging.LogConfigurationException

Throws:
org.apache.commons.logging.LogConfigurationException
Since:

release

public void release()

Since:

removeAttribute

public void removeAttribute(java.lang.String name)

Since:

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)

Since:


${license_html}