Spring hibernate Transaction Logging

后端 未结 2 461
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 07:35

how can we log spring Transaction mechanism. i am showing below example shown in Spring Doc sec 10.5.2.if i want to logging upto this level how to do that

i am usin

相关标签:
2条回答
  • 2021-01-05 08:11

    If you're just willing to set the log level of spring transaction support, try adding the following logger to your log4j.xml :

    <logger name="org.springframework.transaction">
            <level value="DEBUG" />
    </logger>
    
    0 讨论(0)
  • 2021-01-05 08:38

    There's a section about Logging in the Spring Reference.

    It shows how to configure different logging frameworks, among them log4j

    In your case the last line of the config would be:

    log4j.logger.org.springframework.transaction=DEBUG
    
    0 讨论(0)
提交回复
热议问题