On 26/10/2007, at 4:57 AM, Joshua ChaitinPollak wrote:

Hello,

I'm trying to try out the jul-log4j bridge, but I'm not sure if it is possible to enable in from within log4j.properties, rather than programmatically. Our project configures log4j with a flat properties file, rather than XML. Is it possible to enable the plugin without modifying the code anyway?

You can't configure any log4j plugins without the DOMConfigurator. This goes for all Plugins (Receivers etc), so unfortunately the answers no at this stage, sorry.

I tried to compile the bridge from source via Maven, but there were a bunch of dependancies not available on the plugin maven poms. I've taken to excluding the jmx dependancies in the pom, but there was an problem with apache-log4j-component.jar

the Bridge project is waiting on some downstream log4j sub-projects to be released before it too can be released. You can easily build the dependencies.

Just check out:

svn co http://svn.apache.org/viewcvs.cgi/logging/log4j/companions/ component/trunk log4j-component
cd log4j-component
mvn install

Once you have the log4j-component module installed in your local maven repo, building the bridge should work. Please let me know if it doesn't. :)

cheers,

Paul

Reply via email to