Author
Log4J integration in Spring MVC 2.5 application
Abhay Agarwal
Ranch Hand
Joined: Feb 29, 2008
Posts: 655
Hi
I am developing a sample Spring MVC 2.5 application (non annotation based).
I need to integrate Log4J framework in my application.
I did some search on google but did not find any step by step guide to integrate Log4J in a Spring MVC 2.5 application.
Please provide the steps that i can perform to integrate Log4J.
Thanks
Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
Like with any application, it's just a matter of putting the log4j JAR in your classpath and making a log4j configuration file. Check log4j's manual to learn how to use it.
[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation .
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted Aug 17, 2010 04:27:19
0
Agreed--are you having any specific issues? There's nothing special about using it in a Spring app.
Abhay Agarwal
Ranch Hand
Joined: Feb 29, 2008
Posts: 655
nope ... solution mentioned worked for me
~ abhay
subject: Log4J integration in Spring MVC 2.5 application