timberkt / com.github.ajalt.timberkt / Timber

Timber

object Timber

Functions

DebugTree

fun DebugTree(): DebugTree

A Timber.Tree for debug builds. Automatically infers the tag from the calling class.

asTree

fun asTree(): Tree

A view into Timber's planted trees as a tree itself.

d

fun d(t: Throwable? = null, message: () -> String): Unit

Log a debug exception and a message that will be evaluated lazily when the message is printed

fun d(t: Throwable?): Unit

e

fun e(t: Throwable? = null, message: () -> String): Unit

Log an error exception and a message that will be evaluated lazily when the message is printed

fun e(t: Throwable?): Unit

i

fun i(t: Throwable? = null, message: () -> String): Unit

Log an info exception and a message that will be evaluated lazily when the message is printed

fun i(t: Throwable?): Unit

plant

fun plant(tree: Tree): Unit

Add a new logging tree.

tag

fun tag(tag: String): Tree

Set a one-time tag for use on the next logging call.

uproot

fun uproot(tree: Tree): Unit

A view into Timber's planted trees as a tree itself.

uprootAll

fun uprootAll(): Unit

Set a one-time tag for use on the next logging call.

v

fun v(t: Throwable? = null, message: () -> String): Unit

Log a verbose exception and a message that will be evaluated lazily when the message is printed

fun v(t: Throwable?): Unit

w

fun w(t: Throwable? = null, message: () -> String): Unit

Log a warning exception and a message that will be evaluated lazily when the message is printed

fun w(t: Throwable?): Unit

wtf

fun wtf(t: Throwable? = null, message: () -> String): Unit

Log an assert exception and a message that will be evaluated lazily when the message is printed

fun wtf(t: Throwable?): Unit