Posted By

nialace on 08/24/11


Tagged

log4j Hibernate meibo


Versions (?)

Show hibernate logs in log4j


 / Published in: XML
 

Dans log4j.xml

  1. Pour Hibernate 3
  2.  
  3. <logger name="org.hibernate.SQL" additivity="true">
  4. <level value="debug"/>
  5. <appender-ref ref="someAppender" />
  6. </logger>
  7.  
  8.  
  9. Pour Hibernate 2
  10.  
  11. <logger name="net.sf.hibernate.SQL" additivity="true">
  12. <level value="debug"/>
  13. <appender-ref ref="someAppender" />
  14. </logger>

Report this snippet  

You need to login to post a comment.