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 in Spring MVC application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Log4J in Spring MVC application" Watch "Log4J in Spring MVC application" New topic
Author

Log4J in Spring MVC application

Pardeep Kapoor
Greenhorn

Joined: Jul 05, 2011
Posts: 2
Hi,

I didn't find any good material to wire the LOG4J in Spring MVC application.

Could anyone please guide or provide me some good stuff for it.

Thanks - Paddy !
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I don't think it will be difficult to use log4j with Spring MVC. Have you tried adding log4j jar in app lib with log4j.xml in CLASSPATH.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Raja Pal
Ranch Hand

Joined: Jul 12, 2004
Posts: 92
Hi Paddy, If you are just trying to use automatic logging of the app, through appenders(log4j) that happens pretty well using log4j. The log4j documentation tells you how to plugit in for any web app. Any issues you have with spring in particular, you can ask...we do it in most of our apps - works well.


Java Pal - Your friend in technology and innovation...India.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Welcome to CodeRanch, Pardeep Kapoor!


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Pardeep Kapoor
Greenhorn

Joined: Jul 05, 2011
Posts: 2
Vijitha Kumara wrote:Welcome to CodeRanch, Pardeep Kapoor!


Thanks !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4J in Spring MVC application
 
Similar Threads
[Spring Web Flow 2] Can Spring Web Flow work with Spring Web MVC?
Spring 3.0 MVC examples links required
OptimalJ
Log4J integration in Spring MVC 2.5 application
struts2 Vs spring mvc