Class LoggingUtils


  • public class LoggingUtils
    extends java.lang.Object
    A collection of utilities used by our logging function.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String redactSecrets​(java.lang.String s)
      Redacts secrets within string "s" and returns the resulting string with secrets replaced by "[redacted]".
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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]"