struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Albrecht <malbre...@neusta.de>
Subject AW: Using Log4j in Struts 1.1
Date Thu, 08 Jul 2004 14:45:16 GMT
Hi!

1. You have to put commons.logging.jar and your favourite implementation, e.g.
log4j.jar, in the WEB-INF/lib or the server directory for common libraries
(e.g. CATALINA_HOME/commons/lib).

2. The configuration of the logging framework could be done in several ways. The
most simple one to do is to copy the log4j.properties in your WEB-INF/classes
directory.
After that you can start with logging immediately, but there are two
disadvantages:
- property file is part of deployment
- changing of log4j.xml could due to a server redeployment of the web app.

I hoe this helps you a little bit to get off.

Michael
http://www.struts-it.de

--
NEUSTA Computersprachen GmbH
Ostertorsteinweg 30
28203 Bremen
Tel.: +49 421 20696-22
Fax: +49 421 20696-99
Mobil: +49 171 4289299

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message