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
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!).