Enable Hibernate logging

前端 未结 5 1562
一生所求
一生所求 2020-12-03 03:04

I\'m trying to create a log of hibernate statements. I perform my sql statements using JPA where Hibernate 2.0 is the persistence provider (my application server is JBoss AS

5条回答
  •  忘掉有多难
    2020-12-03 03:50

    I answer to myself. As suggested by Vadzim, I must consider the jboss-logging.xml file and insert these lines:

    
         
    
    

    Instead of DEBUG level I wrote TRACE. Now don't look only the console but open the server.log file (debug messages aren't sent to the console but you can configure this mode!).

提交回复
热议问题