Class SqlStatementLogging

java.lang.Object
org.hawaiiframework.logging.sql.SqlStatementLogging

public final class SqlStatementLogging extends Object
Utility class to suppress sql logging.
  • Method Details

    • suppress

      public static SqlLoggingState suppress()
      Suppress logging.
      Returns:
      The auto closeable state.
    • suppress

      public static SqlLoggingState suppress(boolean suppressed)
      Suppress logging. The suppressed can be used to wire suppression into calling code.
      Parameters:
      suppressed - Flag to allow configuration of suppression.
      Returns:
      The auto closeable state.
    • enable

      public static void enable()
      Enable logging.
    • isSuppressed

      public static boolean isSuppressed()
      Return true if the logging is suppressed.
      Returns:
      true if the logging is suppressed for this thread.
    • clear

      public static void clear()
      Continue with normal logging.