Friday, April 17, 2015

Turn off hibernate logging to console

Using hibernate with java is simply brilliant.
But the logs like this may make you think differently :)

Hibernate: select securityus0_.ID ....
Hibernate: select securityus0_.ID ....
Hibernate: select securityus0_.ID ....
Hibernate: select securityus0_.ID ....
So you may need to turn off these logs, that is simple.


 Change the property show_sql from true to false in your Hibernate config file.



No comments:

Post a Comment