开发者

Does Hibernate log the values that it assigns to placeholders in prepared SQL statements?

开发者 https://www.devze.com 2023-01-03 16:13 出处:网络
Does Hibernate log the values that it assi开发者_Python百科gns to placeholders in prepared SQL statements?How can configure Log4j so that it writes these values to my log files?Yes it does (see the Ch

Does Hibernate log the values that it assi开发者_Python百科gns to placeholders in prepared SQL statements? How can configure Log4j so that it writes these values to my log files?


Yes it does (see the Chapter 3.5 Logging). Activate logging of the following categories:

log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.type=TRACE
0

精彩评论

暂无评论...
验证码 换一张
取 消