Package com.ibm.cloud.sdk.core.util
Class LoggingUtils
- java.lang.Object
-
- com.ibm.cloud.sdk.core.util.LoggingUtils
-
public class LoggingUtils extends java.lang.ObjectA collection of utilities used by our logging function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringredactSecrets(java.lang.String s)Redacts secrets within string "s" and returns the resulting string with secrets replaced by "[redacted]".
-
-
-
Method Detail
-
redactSecrets
public static java.lang.String redactSecrets(java.lang.String s)
Redacts secrets within string "s" and returns the resulting string with secrets replaced by "[redacted]". The resulting string should be suitable for including in debug logs.- Parameters:
s- the string to be redacted- Returns:
- the input string with secrets replaced with "[redacted]"
-
-