Interface EventLogger.LoggerCallback

Enclosing class:
EventLogger

public static interface EventLogger.LoggerCallback
This interface provides a way implement alternative logging. By default EventLogger writes all messages to logcat. If another method of logging is preferred, a class implementing this interface can be registered with either EventLogger(EventEmitter, boolean, LoggerCallback) or EventLogger(EventEmitter, boolean, String, LoggerCallback) and all log messages will be sent to that class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logError(String message, Throwable throwable)
    Called when an error should be logged.
    void
    logMessage(String message)
    Called when a message should be logged.
  • Method Details

    • logMessage

      void logMessage(String message)
      Called when a message should be logged.
      Parameters:
      message - The message to log
    • logError

      void logError(String message, Throwable throwable)
      Called when an error should be logged.
      Parameters:
      message - The message associated with the error.
      throwable - The error that occurred.