File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Log4J integration in Spring MVC 2.5 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
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: 1212
    
    1

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 Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.


[My Blog]
All roads lead to JavaRanch
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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: 1212
    
    1

nope ... solution mentioned worked for me

~ abhay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4J integration in Spring MVC 2.5 application