Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.81 KB

File metadata and controls

22 lines (17 loc) · 1.81 KB

View Binding/Extracted Params Via Log4J 2

Description: View the prepared statement binding/extracted parameters via Log4J 2 logger setting.

Key points:

  • for Maven, in pom.xml, exclude Spring Boot's Default Logging
  • for Maven, in pom.xml, Add Log4j 2 Dependency
  • in log4j2.xml add, <Logger name="org.hibernate.type.descriptor.sql" level="trace"/>

Output example:


If you need a deep dive into the performance recipes exposed in this repository then I am sure that you will love my book "Spring Boot Persistence Best Practices"If you need a hand of tips and illustrations of 100+ Java persistence performance issues then "Java Persistence Performance Illustrated Guide" is for you.