Hi (Commiters),

I finally managed to make Phoenix use Log4J automatically.
It can be configured in the environment.xml file like this:
<logs type="log4j" version="1.2" configFile="SAR-INF/log4j_config.xml"/>

This is useful since Log4J is widely used out there and it is a pain to
switch the logging package everywhere if you want to reuse a large package.

For this change I had to modify Phoenix, Excalibur and the Avalon framework.
The source code is attached to this mail.
I used the modern Log4J API (Logger instead of Category, etc.) so one
doesn't get any deprecation warnings anymore.

I hope you find this helpful,

Ole

P.S.: I appended a "2" to every class name so I needn't build Phoenix,
      Excalibur and the Avalon framework for testing.
-- 
Ernst Basler + Partner GmbH
Tuchmacherstraße 47
14482 Potsdam
Tel: (0331) 74 75 9-0
Direkt: (0331) 74 75 9-60
Fax: (0331) 74 75 9-90

Attachment: DefaultLogManager2.java
Description: Binary data

Attachment: Log4JLoggerManager2.java
Description: Binary data

Attachment: Log4JLogger2.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:avalon-users-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-users-help@;jakarta.apache.org>

Reply via email to