Package org.hawaiiframework.logging.sql
Class SqlStatementLogging
java.lang.Object
org.hawaiiframework.logging.sql.SqlStatementLogging
Utility class to suppress sql logging.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Continue with normal logging.static voidenable()Enable logging.static booleanReturntrueif the logging is suppressed.static SqlLoggingStatesuppress()Suppress logging.static SqlLoggingStatesuppress(boolean suppressed) Suppress logging.
-
Method Details
-
suppress
Suppress logging.- Returns:
- The auto closeable state.
-
suppress
Suppress logging. Thesuppressedcan 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()Returntrueif the logging is suppressed.- Returns:
trueif the logging is suppressed for this thread.
-
clear
public static void clear()Continue with normal logging.
-