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 Summary

    Modifier and Type
    Method
    Description
    void
    onCastlabsLog(int level, String tag, String msg, Throwable tr)
    A log message is triggered.
  • Method Details

    • 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.