Results 1 to 3 of 3

Thread: Setting logging level to Debug in Spring

  1. #1
    Join Date
    Apr 2005
    Location
    Guildford, UK
    Posts
    15

    Default 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
    Neil Canham
    Know Sense Limited
    ...sense from KnowSense

  2. #2
    Join Date
    Feb 2005
    Posts
    217

    Default

    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

  3. #3
    Join Date
    Apr 2005
    Location
    Guildford, UK
    Posts
    15

    Default

    Unfortunately I already tried that... no dice.
    Neil Canham
    Know Sense Limited
    ...sense from KnowSense

Similar Threads

  1. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  4. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •