private static void log(int priority, String tag, String message, @Nullable Throwable throwable) {
        String fullMessage = message;
        if (throwable != null) {
            fullMessage = fullMessage + "\n" + Log.getStackTraceString(throwable);
        }
        if (logHandler != null) {
            logHandler.log(priority, tag, fullMessage);
        } else {
            Log.println(priority, tag, fullMessage);
        }
    }
The log interface is designed to be similar to android.util.Log
@param priority The priority/type of this log message.
                Possible values are {@link Log#VERBOSE}, {@link Log#DEBUG}, {@link Log#INFO}, {@link Log#WARN}, {@link Log#ERROR}
@param tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs
@param message The message that was logged.
mesh/src/main/java/no/nordicsemi/android/mesh/logger/MeshLogger.java