Interface Logger.Listener

  • All Implemented Interfaces:

    
    public interface Logger.Listener
    
                        

    Listener to receive the log messages along with their respective tags.

    • Recommended to be only used in debug mode or for specific use cases.

    • All methods are called from a coroutine with the Dispatchers.Default context.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • log

         Unit log(Integer logLevel, String tag, String message)

        Called when the tag would print a message.

        Parameters:
        logLevel - the log level of the message, same as from Log.
        tag - the tag of the message
        message - the message
      • logVerbose

         Unit logVerbose(String tag, String message)

        Called when the tag would print a Verbose message, same level as Log.VERBOSE.

        Parameters:
        tag - the tag of the message
        message - the message
      • logDebug

         Unit logDebug(String tag, String message)

        Called when the tag would print a Debug message, same level as Log.DEBUG.

        Parameters:
        tag - the tag of the message
        message - the message
      • logInfo

         Unit logInfo(String tag, String message)

        Called when the tag would print an Info message, same level as Log.INFO.

        Parameters:
        tag - the tag of the message
        message - the message
      • logWarning

         Unit logWarning(String tag, String message)

        Called when the tag would print a Warning message, same level as Log.WARN.

        Parameters:
        tag - the tag of the message
        message - the message
      • logError

         Unit logError(String tag, String message)

        Called when the tag would print an Error message, same level as Log.ERROR.

        Parameters:
        tag - the tag of the message
        message - the message