Package org.freedesktop.dbus.utils
Class LoggingHelper
- java.lang.Object
-
- org.freedesktop.dbus.utils.LoggingHelper
-
public final class LoggingHelper extends Object
Helper for some logging stuff, e.g. avoid callArrays.deepToString(Object[])if loglevel is not enabled.- Since:
- v3.2.4 - 2020-08-24
- Author:
- David M.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringarraysDeepString(boolean _loggingEnabled, Object[] _array)CallsArrays.deepToString(Object[])if given boolean is true, returns null otherwise.
-
-
-
Method Detail
-
arraysDeepString
public static String arraysDeepString(boolean _loggingEnabled, Object[] _array)
CallsArrays.deepToString(Object[])if given boolean is true, returns null otherwise.- Parameters:
_loggingEnabled- true to create deep-string representation of given array_array- array to convert to deep-string- Returns:
- String or null if given boolean is false or _array is null
-
-