Package com.theoplayer.android.api.util
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.
-
-
Method Summary
Modifier and Type Method Description Unit
log(Integer logLevel, String tag, String message)
Called when the tag would print a message. Unit
logVerbose(String tag, String message)
Called when the tag would print a Verbose message, same level as Log.VERBOSE. Unit
logDebug(String tag, String message)
Called when the tag would print a Debug message, same level as Log.DEBUG. Unit
logInfo(String tag, String message)
Called when the tag would print an Info message, same level as Log.INFO. Unit
logWarning(String tag, String message)
Called when the tag would print a Warning message, same level as Log.WARN. Unit
logError(String tag, String message)
Called when the tag would print an Error message, same level as Log.ERROR. -
-
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 messagemessage
- 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 messagemessage
- 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 messagemessage
- 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 messagemessage
- 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 messagemessage
- the message
-
-
-
-