AndroidLogger

class AndroidLogger(val logTag: String, val levelForVerboseMessages: Int = Log.VERBOSE, val levelForErrorMessages: Int = Log.ERROR) : Logger

Logger for Android that logs using android.util.Log.

Uses logTag as the tag for the logs.

Received actions and state updates in a Store are logged with levelForVerboseMessages. Exceptions are logged with levelForErrorMessages.

Valid values for the log levels are: VERBOSE, DEBUG, INFO, WARN, ERROR.

See also

Throws

If the log tag is empty or the log levels are invalid integer values.

Constructors

Link copied to clipboard
constructor(logTag: String, levelForVerboseMessages: Int = Log.VERBOSE, levelForErrorMessages: Int = Log.ERROR)

Properties

Link copied to clipboard

Log level for error messages. Must be one of the level constants from Log. Defaults to Log.ERROR.

Link copied to clipboard

Log level for verbose messages. Must be one of the level constants from Log. Defaults to Log.VERBOSE.

Link copied to clipboard

The tag used for logging. Must not be empty.

Functions

Link copied to clipboard
open override fun error(logMessage: String, throwable: Throwable?)
Link copied to clipboard
open override fun verbose(logMessage: String, throwable: Throwable?)