Interface Log.Logger

  • Enclosing class:
    Log

    public static interface Log.Logger
    Logger interface that receives logging messages.

    You can register loggers with the Log.addLogger(Logger) method.

    • Method Detail

      • onCastlabsLog

        void onCastlabsLog​(int level,
                           @NonNull
                           String tag,
                           @Nullable
                           String msg,
                           @Nullable
                           Throwable tr)
        A log message is triggered.

        NOTE: This method will be called for every log message regardless the value of Log.getLogLevel().

        Parameters:
        level - The Log level
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        msg - The logged message.
        tr - Logged exception, if any. May be null.