IntelliJ Java IDE
The moose likes Spring and the fly likes Log4J integration in Spring MVC 2.5 application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Log4J integration in Spring MVC 2.5 application" Watch "Log4J integration in Spring MVC 2.5 application" New topic
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
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
 
Threads others viewed
Learning spring question (2.5 vs 3.0)
Spring in Action - Spring Web App Tutorial
Log4J integration in Servlet/JSP application
Books information needed to start spring
What is the soul purpose of Tapestry
IntelliJ Java IDE