File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Log4J Configuration Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log4J Configuration Problem" Watch "Log4J Configuration Problem" New topic

Log4J Configuration Problem

George Impagliazo
Ranch Hand

Joined: Sep 25, 2010
Posts: 41
I'm trying to adjust the log4J file I package in my webappso that I get DEBUG level logging for my webapp and only get ERROR level debugging for everything else, like Spring.

I've been experimenting with the configuration below.

I can't get DEBUG logging for my webapp into my log file or stdout.

  • [*]The name of webapp is "acme"
    [*] It is packaged in "acme.war"
    [*] The root package is com.webabbs.acme

  • I tried putting "acme" and "com.webapps.acme" into the second logger in the file below, but no luck.

    Any ideas what I am not doing?

    Thanks much in advance

    I agree. Here's the link:
    subject: Log4J Configuration Problem
    It's not a secret anymore!