Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2
Is it possible to get Hibernate to log into a separate file using the log4j.category entry in log4j.properties. I tried the following in my log4j.properties file and did not work.
......
......
log4j.appender.cm_hibernate_file=org.apache.log4j.FileAppender
log4j.appender.cm_hibernate_file.File=cm.hibernate.log
log4j.appender.cm_hibernate_file.layout=org.apache.log4j.PatternLayout
log4j.appender.cm_hibernate_file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
#log4j.logger.org.hibernate=info
log4j.logger.org.hibernate=debug
log4j.category.org.hibernate=DEBUG,cm_hibernate_file
log4j.additivity.org.hibernate=false
...........
...........
Thanks for any help