[rules-dev] log4j.xml

Geoffrey De Smet ge0ffrey.spam at gmail.com
Thu Sep 20 12:24:55 EDT 2007


Make a jira issue mate :)

With kind regards,
Geoffrey De Smet


Mike McMahon wrote:
> Fernando Meyer or Michael Neale..any comments or thoughts? I guess I am 
> of the belief that drools-repository/src/main/resources/log4j.xml should 
> NOT be bundled into drools-repository.jar because it causes exactly the 
> problems described by Geoffrey De Smet below.
> 
> 
>> Message: 2
>> Date: Tue, 18 Sep 2007 08:46:03 +0200
>> From: Geoffrey De Smet <ge0ffrey.spam at gmail.com>
>> Subject: Re: [rules-dev] log4j.xml
>> To: rules-dev at lists.jboss.org
>> Message-ID: <fcns7f$f68$1 at sea.gmane.org>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Artifacts (jar or wars) used by 3th parties shouldn't contain a 
>> log4j.properties or log4j.xml in the root.
>> If they do, the logging configuration depends on the order of the jars 
>> in the classpath, which is hard, error-prone and a bad practice to 
>> control.
>>
>> Solution:
>> - namespace the log4j.xml, like I did in drools-solver, use a 
>> DomConfigurer (or what's it called) at the initialization of the 
>> application. However that will be hard in a war I believe.
>> - or use sl4j?
>>
>> With kind regards,
>> Geoffrey De Smet
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
> 




More information about the rules-dev mailing list