writeToLog

abstract fun writeToLog(level: LogWriter.LogLevel, tag: String, error: Throwable?, message: String? = null, vararg args: Any?)

Writes message to log.

Parameters

level

LogLevel for message.

tag

Class name from where this entry is being logged.

error

Throwable to log.

message

Format String to be supplied to String.message() (ie.: "Error opening file: %s")

args

Arguments for the supplied message