Announcement Announcement Module
Collapse
No announcement yet.
Setting logging level to Debug in Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting logging level to Debug in Spring

    I just don't seem to be able to! This is my log4j.properties file, in WEB-INF:
    Code:
    # Global logging configuration
    log4j.rootLogger=DEBUG, stdout
    # SqlMap logging configuration...
    log4j.logger.com.ibatis=DEBUG
    log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
    log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG
    log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
    log4j.logger.java.sql.Connection=DEBUG
    log4j.logger.java.sql.Statement=DEBUG
    log4j.logger.java.sql.PreparedStatement=DEBUG
    log4j.logger.java.sql.ResultSet=DEBUG
    log4j.logger.org.springframework.context.support.ApplicationObjectSupport=DEBUG
    # Console output...
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
    and as configured, I get debug level logging from iBatis and jdbc but only info level from Spring.
    Anyone any ideas? I am using JDK1.5 running on TomCat v5.5

    Neil

  • #2
    Code:
    log4j.logger.org.springframework.context.support.ApplicationObjectSupport=DEBUG
    That sets the o.s.c.s.ApplicationSupport log level to debug. If you want all of spring's messages to be debug do something like this:
    Code:
    log4j.logger.org.springframework=DEBUG

    Comment


    • #3
      Unfortunately I already tried that... no dice.

      Comment

      Working...
      X