-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Enabling logging ?
PostPosted: Thu Feb 03, 2005 2:02 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.