Klasse LoggingHelper

java.lang.Object
org.freedesktop.dbus.utils.LoggingHelper

public final class LoggingHelper extends Object
Helper for some logging stuff, e.g. avoid call Arrays.deepToString(Object[]) if loglevel is not enabled.
Seit:
v3.2.4 - 2020-08-24
Autor:
David M.
  • Methodendetails

    • arraysVeryDeepString

      public static String arraysVeryDeepString(Object[] _array)
      Creates a toString() result for an array. Will resolve nested arrays and collections.
      Parameter:
      _array - array to convert
      Gibt zurück:
      String or null if input null
      Seit:
      v4.2.2 - 2023-01-20
    • logIf

      public static void logIf(boolean _enabled, Runnable _loggerCall)
      Executes the runnable if the boolean is true.
      Parameter:
      _enabled - boolean, if true runnable is executed
      _loggerCall - runnable containing logger call