Announcement Announcement Module
Collapse
No announcement yet.
tutorial-problem with log4j Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • tutorial-problem with log4j

    hello,

    i'm a complete beginner. so i try to complete the official beginners-tutorial of springframework.org and along another problem with the i have a problem with the logging. i followed the steps described in the tutorial and found out that i have to add some lines to the web.xml-filea s follows:

    <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>/WEB-INF/classes/log4j.properties</param-value>
    </context-param>

    <listener>
    <listener-class>
    org.springframework.web.util.Log4jConfigListener
    </listener-class>
    </listener>


    afterwards i had a new logging-file in "~/programme/tomcat/logs/", but it never gots an entry.

    why is that?

    thank you for your help.

  • #2
    show us your log4j.properties file, and show us some uses in your program.

    That location: WEB-INF/classes/log4j.properties is also the root location of your classpath, you can probably get away with just
    Code:
    <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>log4j.properties</param-value>
    </context-param>
    Last edited by khote; Nov 28th, 2005, 06:26 AM.

    Comment

    Working...
    X