LogcatLogger

class LogcatLogger(var isEnabled: Boolean) : Logger

Constructors

Link copied to clipboard
constructor(isEnabled: Boolean)

Properties

Link copied to clipboard
open override var isEnabled: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
inline fun Logger.d(tag: String, block: () -> String)
Link copied to clipboard
inline fun Logger.e(tag: String, block: () -> String)
inline fun Logger.e(tag: String, tr: Throwable, block: () -> String)
Link copied to clipboard
inline fun Logger.i(tag: String, block: () -> String)
inline fun Logger.i(tag: String, tr: Throwable, block: () -> String)
Link copied to clipboard
fun isLoggable(logLevel: Int): Boolean
Link copied to clipboard
open override fun println(logLevel: Int, tag: String, msg: String)
open override fun println(logLevel: Int, tag: String, tr: Throwable, msg: String)
Link copied to clipboard
inline fun Logger.println(level: Int, tag: String, block: () -> String)
inline fun Logger.println(level: Int, tag: String, tr: Throwable, block: () -> String)

Building a message string can be expensive. This extension method helps to avoid it if logging is disabled.

Link copied to clipboard
open fun setLogLevel(logLevel: Int)
Link copied to clipboard
inline fun Logger.v(tag: String, block: () -> String)
Link copied to clipboard
inline fun Logger.w(tag: String, block: () -> String)
inline fun Logger.w(tag: String, tr: Throwable, block: () -> String)