|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.logging.LogFactory
org.x4juli.JCLFactory
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
| 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 |
private static java.util.logging.LogManager manager
private static final boolean juliAvailable
protected java.util.Map instances
Log instances that have
already been created, keyed by logger name.
| Constructor Detail |
public JCLFactory()
| Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
public java.lang.String[] getAttributeNames()
public org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
throws org.apache.commons.logging.LogConfigurationException
org.apache.commons.logging.LogConfigurationException
public org.apache.commons.logging.Log getInstance(java.lang.String name)
throws org.apache.commons.logging.LogConfigurationException
org.apache.commons.logging.LogConfigurationExceptionpublic void release()
public void removeAttribute(java.lang.String name)
public void setAttribute(java.lang.String name,
java.lang.Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||