andreas wrote:
I read in the Hibernate documentation, that there's al log level debug, that contains very useful information while debugging.
I'm using Hibernate 2.0.3, Eclipse 2.11 and JSDK 1.4.2. Eclipse uses the logger from JSDK as standard. Could anybody tell me, how I'm able to use the debug log level from Hibernate?
Thanks in advance.
If you're using log4j as the backend logger, you would add something like:
log4j.logger.net.sf.hibernate=trace
or
log4j.logger.net.sf.hibernate=debug
to get extra details, depending on what level of info you want. trace will for example show you the parameters values which are inserted into the prepared statements (the ? replaceable values).
Regards,
-- Colin Sampaleanu