-->
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.  [ 3 posts ] 
Author Message
 Post subject: query parameters not logging
PostPosted: Tue Sep 27, 2005 6:16 pm 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
How do I configure log4j so that query bind parameters are logged? I have set up the following logger but it only logs return values from resultsets and not the values that are bound to SQL statements:

Code:
  <logger name="org.hibernate.type">
    <level value="warn"/>
  </logger>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 7:52 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
org.hibernate.type should be logged at debug level instead of warn to get the parameters information


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 8:20 pm 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
Thanks. Got it working!

One followup questions. This works for HQL but not for QBE. In QBE, when I add an Example to a criteria, it shows the generated SQL along with the object attributes it is going to bind, but stops short of showing the values of the bound parameters.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.