diff --git a/src/main/java/com/auth0/client/auth/AuthAPI.java b/src/main/java/com/auth0/client/auth/AuthAPI.java
index b89e67d4e..ddacb5445 100644
--- a/src/main/java/com/auth0/client/auth/AuthAPI.java
+++ b/src/main/java/com/auth0/client/auth/AuthAPI.java
@@ -155,11 +155,14 @@ public void setTelemetry(Telemetry telemetry) {
}
/**
+ * @deprecated use the logging configuration available in {@link HttpOptions#setLoggingOptions(LoggingOptions)}
+ *
* Whether to enable or not the current HTTP Logger for every request and response line, body, and headers.
* Warning: Enabling logging can leek sensitive information, and should only be done in a controlled, non-production environment.
*
* @param enabled whether to enable the HTTP logger or not.
*/
+ @Deprecated
public void setLoggingEnabled(boolean enabled) {
logging.setLevel(enabled ? Level.BODY : Level.NONE);
}
diff --git a/src/main/java/com/auth0/client/mgmt/ManagementAPI.java b/src/main/java/com/auth0/client/mgmt/ManagementAPI.java
index 8294964f4..b8db4c28a 100644
--- a/src/main/java/com/auth0/client/mgmt/ManagementAPI.java
+++ b/src/main/java/com/auth0/client/mgmt/ManagementAPI.java
@@ -140,11 +140,14 @@ public void setTelemetry(Telemetry telemetry) {
}
/**
+ * @deprecated use the logging configuration available in {@link HttpOptions#setLoggingOptions(LoggingOptions)}
+ *
* Whether to enable or not the current HTTP Logger for every request and response line, body, and headers.
* Warning: Enabling logging can leek sensitive information, and should only be done in a controlled, non-production environment.
*
* @param enabled whether to enable the HTTP logger or not.
*/
+ @Deprecated
public void setLoggingEnabled(boolean enabled) {
logging.setLevel(enabled ? Level.BODY : Level.NONE);
}