This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am developing a Web App using the Struts framework. Can someone pls tell me step by step what (like what is the jar required,,where to put the other configurations files etc )to do in order to configure Log 4j in it.
The end result should be to somehow display the log messages in the tomcat (The Sevlet Container i am using) console, for the log message i have given in the source code ,,, as for example.. logger.debug("log message");
Place that Jar file to the WEB-INF/lib directory for each web application that you deploy.
Place your log4j.properties or your log4j.xml in the classpath of your web app ( usually in WEB-INF/classes).
s mahen perera
Joined: Mar 08, 2005
Thanks Shawn,, appreciate if u can send some link which shows how to edit the log4j.properties file or a sample log4j.properties file,, . Basically i need to know how to change it according to my application. Thanks again