Joined: Thu Feb 03, 2005 11:36 am Posts: 11
|
Hibernate version:
2.1
Hello, I would like to know how to enable logging when using hbm2ddl.
I've read the FAQ but know where to put the log4j.properties file. I've tried in several places without result : I get the same error message "log4j:WARN Please initialize the log4j system properly."
I'm running hbm2ddl from an ant build file inside Eclipse 3.0.1
I've changed this in my log4j.properties file :
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
And
log4j.logger.net.sf.hibernate=debug
Thank for you help
|
|