Log sql statements in spring boot

We can log sql statements in spring boot by using following properties in application.properties file.

//It will shows sql statement in the logs
logging.level.org.hibernate.SQL=debug
 
//It will shows sql values in the logs
logging.level.org.hibernate.type.descriptor.sql=trace