-->
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: possible to capture hibernate sql log ?
PostPosted: Thu Mar 03, 2005 4:23 pm 
Newbie

Joined: Thu Dec 16, 2004 2:19 pm
Posts: 12
Hi,

I wonder if this can be achieve.

In a webapplication, I have (in development environment) a section at the bottom of the page which show useful information like the details of the HttpRequest, HttpSession, etc.

Is it possible to capture these details :

1. SQL statements executed,
2. Bind parameter values, and
3. Execution timing

A quick browse at the hibernate source did not reveal any "hooks" to achieve this.

I imagine there are 2 general ways to do this:

1. Thru capturing/parsing the log (some sort of log4j plugin), or
2. Modify hibernate source to add hooks.

I wonder if there is anyone else has tried to do the same.

Regards.

-chacs


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.