How to Log JPA Queries

We can log the SQL statements by configuring loggers in the properties file:
logging.level.org.hibernate.SQL=debug
logging.level.org.hibernate.orm.jdbc.bind=trace
We can log the SQL statements by configuring loggers in the properties file:
logging.level.org.hibernate.SQL=debug
logging.level.org.hibernate.orm.jdbc.bind=trace