Announcement Announcement Module
Collapse
No announcement yet.
Setting up Junit tests with Commons Logging Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting up Junit tests with Commons Logging

    Hi all,

    I'm trying to debug some hibernate functionality in a spring app with a junit test and commons logging, but I can't seem to get anything other than the default INFO messages to appear:

    Code:
    Mar 29, 2011 4:44:35 PM org.springframework.test.AbstractTransactionalSpringContextTests onSetUp
    INFO: Began transaction: transaction manager [[email protected]873eb2]; defaultRollback true
    testGetSubjectsForSite time: [00:00:00:068]
    Mar 29, 2011 4:44:58 PM org.springframework.test.AbstractTransactionalSpringContextTests endTransaction
    INFO: Rolled back transaction after test execution
    I've tried to add a commons-logging.properties file to the classpath but still only the default INFO messages appear.

    Here's the commons-logging.properties file:

    Code:
    org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
    
    # handlers
    handlers=java.util.logging.ConsoleHandler
    
    # default log level
    .level=FINE
    org.springframework.level=FINE
    
    # level for the console logger
    java.util.logging.ConsoleHandler.level=FINE
    java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    Is anyone able to shed any light on why I can't get the DEBUG messages to print out? Is there a logging setting I'm missing?

  • #2
    thanks

    Wonderful, good saying and very vivid expression, i truly like your opinion about that.I gotta say very good and quite persuasive.

    Comment

    Working...
    X