-->
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: Dynamic activation of parameter value logging
PostPosted: Sat Jun 06, 2009 5:41 pm 
Newbie

Joined: Sat Jun 06, 2009 5:14 pm
Posts: 1
Problem: Logging parameter values for prepared statements using dynamic setting of log levels.

I'm aware of monitoring hibernate generated SQL including parameter and return values by setting the log level of
org.hibernate.SQL to DEBUG and
org.hibernate.type to TRACE.

My problem is that i like to activate monitoring dynamically when needed. Actually I'm using a JMX Bean to set the level of loggers.
While setting the log level of org.hibernate.SQL to DEBUG results in logging of prepared statements as expected, the setting of logger for
org.hibernate.type to TRACE does not trigger the logging of parameter values.

I guess that during bootstrapping the mechanism for logging parameters is activated if and only if the log level org.hibernate.type is set to trace.
Starting with a less verbose level and changing to TRACE-Level afterwards will not active the logging of parameters.

My question is: Is there a workaround or a programmatic pattern to activate parameter logging during runtime?

Probably, this question was asked before, but I couldn't find a correspondic topic.


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.