Over a million developers have joined DZone.

Hibernate Logging Guide [Video]

DZone's Guide to

Hibernate Logging Guide [Video]

It's important to choose the right logging configuration in order to find performance issues during development instead of during production.

· Performance Zone
Free Resource

Discover 50 of the latest mobile performance statistics with the Ultimate Guide to Digital Experience Monitoring, brought to you in partnership with Catchpoint.

Choosing the right logging configuration can make the difference between finding a performance issue during development or suffering from it in production. But it can also create an overhead that slows down your application. You need to decide which information you need and configure your system accordingly.

I, therefore, prefer to use two different configurations:

  • A development configuration that logs enough internal information to understand the database interactions, see the number of executed queries, and check the SQL statements.
  • A production configuration that logs as few messages as possible and avoids any overhead.

I explain both configurations in more detail in the following video.

Or if you prefer to read, you can find a detailed description of Hibernate's logging configuration and my recommendations for development and production in the Hibernate Logging Guide on my blog.

Is your APM strategy broken? This ebook explores the latest in Gartner research to help you learn how to close the end-user experience gap in APM, brought to you in partnership with Catchpoint.

hibernate ,jpa ,logging ,performance ,configurations

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}