From: Gavin_King/Cirrus%<CI...@ci...> - 2002-07-01 09:53:47
|
If you just need to see the SQL statements executed, you can simply set the property hibernate.show_sql=true. Otherwise: 1. put log4j.jar in your classpath 2. create a log4j.properties file and place it in the classpath. You should configure logging for the category cirrus.hibernate if you want to see all hibernate log messages. Try something like this: log4j.logger.cirrus.hibernate=DEBUG, A #log4j.rootLogger=DEBUG, A log4j.appender.A=org.apache.log4j.FileAppender log4j.appender.A.File=hibernate.log log4j.appender.A.layout=org.apache.log4j.PatternLayout log4j.appender.A.layout.ConversionPattern=%r [%t] %p %c - %m%n Alternatively, you may configure JDK1.4 logging (if running under JDK1.4). I suppose I should add all this to the documentation. |