You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Paul Smith <ps...@aconex.com> on 2007/04/23 01:42:26 UTC

Add simplistic juli Filter class to log4j 1.2 tree

I'd like to propose that we consider adding a simplistic juli log  
filter class to log4j 1.2.  Since it needs to compile with jdk 1.4,  
we'd probably have to create a separate jar for this, perhaps a new  
log4j-juli sandbox module.

We could update all *Configurator classes to detect if this bridge is  
available, and expose a new property on the configurators such as

public void setUseJDK14LoggingBridge(boolean true)

(or better name).

This could throw an IllegalStateException if the underlying OS is not  
JDK 1.4 or above, and the juli-bridge classes are not available.   
That way a simple bridge could be provided to our user community by  
them doing:

* Downloading and adding a single additional jar to log4j
* Using the latest log4j 1.2.15 (say)
* Adding a single method call to their Configurator usage

Perhaps as an added bonus, adding support to the XML/Properties  
configuration to allow that

<log4j:configuration debug="false" threshold="debug"  
useJDK14LoggingBridge="true"....>

etc.

thoughts?

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org