Class HttpRequestLogging
java.lang.Object
org.hawaiiframework.logging.http.client.HttpRequestLogging
Utility class to suppress http request logging.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Continue with normal logging.static voidenable()Enable logging.static booleanReturntrueif the logging is enabled.static booleanReturntrueif the logging is suppressed.static HttpRequestLoggingStatesuppress()Suppress logging.static HttpRequestLoggingStatesuppress(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. -
isEnabled
public static boolean isEnabled()Returntrueif the logging is enabled.- Returns:
trueif the logging is enabled for this thread.
-
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.
-