-->
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.  [ 2 posts ] 
Author Message
 Post subject: how to specify hibernate log when we use java.util.logging??
PostPosted: Fri Feb 17, 2006 5:20 pm 
Beginner
Beginner

Joined: Thu Jan 12, 2006 7:38 pm
Posts: 25
Hi All,

i am using java.util.logging, how will you specify hibernate logging when you use java.util.logging.

because in log4j you can specify like this:

Code:
log4j.logger.org.hibernate=info
#log4j.logger.org.hibernate=debug

### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=debug

### log just the SQL
#log4j.logger.org.hibernate.SQL=debug

how to specify these in java.util.logging???


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 8:27 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
java.util.logging is separate from log4j. Even if your application uses the java logging stuff, Hibernate uses log4j. The only way to configure Hibernate's logging is to configure log4j.

You could use Apache commons-logging to wrap both loggers, but that's pointless seeing as Hibernate uses log4j classes throughout. Just stick with separate logging for your app and Hibernate, it's simplest.


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

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.