Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class FileLogger(applicationContext: Context, directory: String) : Logger
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Be aware, this observer is stateful.

Link copied to clipboard
object LogsExtra
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
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
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)