Thursday, May 3, 2012

Configure log4j for Spring MVC

1. Add following to web.xml




2. Create log4j factory bean in applicationContext.xml

3. Use it

public class SomeComponent{
    private Log logger;
    public void setLogger(Log logger){


Spring MVC Sample Project


  1. Very happy to see this blog. Gives a wonderful information with coded explanaion. Thank you for this blog. very useful to me.
    Java Training in Chennai

  2. Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

  3. Thanks for sharing this unique information with us. Your post is really awesome. Your blog is really helpful for me..
    Top college in Jaipur

  4. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end. 
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore

  5. Nice article
    For Data Science training in Bangalore, Visit:
    Data Science training in bangalore

  6. Such a great information for blogger iam a professional blogger thanks…

    Get Best Dell Boomi Training in Bangalorev from Real Time Industry Experts with 100% Placement Assistance in MNC Companies. Book your Free Demo with Softgen Infotech.

  7. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up. spring boot certification course!

  8. Advanced System Repair Pro Crack is one of the best and effective tools designed to scan, detect, and fix errors in your Windows system.Advanced System Repair Pro License Key 2022

  9. Microsoft Office, or simply Office, is a family of client software, server software, and services developed by Microsoft. It was first announced by Bill .Microsoft Office Free Download

  10. Use between herself his section race father relationship. Rule beat federal. Reflect professional though beautiful eight another