Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Log the SQL parameters used by ORM

Explorer ,
Sep 15, 2013 Sep 15, 2013

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

342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources