LogWriter

interface LogWriter

LogWriter to be used by the SDK. A default LogWriter will be used to write to logcat if a customized one is not provided.

Types

LogLevel
Link copied to clipboard
enum LogLevel : Enum<LogWriter.LogLevel>

Functions

writeToLog
Link copied to clipboard
abstract fun writeToLog(level: LogWriter.LogLevel, tag: String, error: Throwable?, message: String? = null, vararg args: Any?)
Writes message to log.

Extensions

format
Link copied to clipboard
fun LogWriter.format(logTag: String, tag: String, message: String, vararg args: Any?): String
Default method to format the message to be logged.