Package 

Interface EventLogger.LoggerCallback


  • 
    public interface EventLogger.LoggerCallback
    
                        

    This interface provides a way implement alternative logging. By default EventLogger writes all messages tologcat. If another method of logging is preferred, a class implementing this interface can be registeredwith either EventLogger or EventLogger and all log messages will besent to that class.

    • Method Summary

      Modifier and Type Method Description
      abstract void logMessage(String message) Called when a message should be logged.
      abstract void logError(String message, Throwable throwable) Called when an error should be logged.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • logMessage

         abstract void logMessage(String message)

        Called when a message should be logged.

        Parameters:
        message - The message to log
      • logError

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