Skip to main content
Inspiring
September 15, 2013
Question

Log the SQL parameters used by ORM

  • September 15, 2013
  • 0 replies
  • 363 views

Hi Everyone,

I have read Rupesh's blog post;

http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-how-to-log-sql/

and have appropriately changed the log4j setting

### Also log the parameter binding to the prepared statements.

log4j.logger.org.hibernate.type=DEBUG

But I still do not see the values of query parameters in my log files.

All I get is the auestion marks;

09/15 12:35:57 [ajp-bio-8014-exec-3] HIBERNATE DEBUG -

    insert

    into

        audit_log

        (description, created, userID)

    values

        (?, ?, ?)

Does anyone have any ideas? And as always - thanks in advance!

Gavin.

Message was edited by: GavinBaumanis

This topic has been closed for replies.