Class JfrQueryLogger

java.lang.Object
io.hypersistence.utils.hibernate.query.JfrQueryLogger
All Implemented Interfaces:
Serializable, org.hibernate.resource.jdbc.spi.StatementInspector

public final class JfrQueryLogger extends Object implements org.hibernate.resource.jdbc.spi.StatementInspector
The JfrQueryLogger allows you to log a given SQL, including its stack trace, using JDK Flight Recorder.

This only works with HotSpot based JVMs and requires at least Java 11.

Since:
3.6.0
Author:
Philippe Marschall
See Also:
  • Constructor Details

    • JfrQueryLogger

      public JfrQueryLogger()
  • Method Details

    • inspect

      public String inspect(String sql)
      Specified by:
      inspect in interface org.hibernate.resource.jdbc.spi.StatementInspector