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(a)gmail.com>
Subject: Re: [rules-dev] log4j.xml
To: rules-dev(a)lists.jboss.org
Message-ID: <fcns7f$f68$1(a)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