Posted In: Apache Log4J, Hibernate, Logback, Logging, SLF4J

Hibernate 5 – print a query string with parameter values

Logging frameworks used 1. Using LOG4J slf4j-log4j12 2. Using LOGBACK 3. Using LOG4J 2X   1. Using LOG4J slf4j-log4j12 Maven slf4j-log4j12 log4j.properties Will print both BasicTypeRegistry and BasicBinder (parameter values) logs. log4j.logger.org.hibernate.type=ALL Will print only BasicBinder (parameter values) logs. log4j.logger.org.hibernate.type.descriptor.sql=trace Parameter values logs 12:52:11,376 TRACE BasicBinder:65 – binding parameter [1] as [VARCHAR] – [Abhijit] 12:52:11,376 […]

Read More

by , on September 4th, 2017

  • Categories