Forest

Properties

Link copied to clipboard
@get:JvmName(name = "treeCount")
val treeCount: Int

Functions

Link copied to clipboard
open inline fun asTree(): Timber.Tree

A view into Timber's planted trees as a tree itself. This can be used for injecting a logger instance rather than using static methods or to facilitate testing.

Link copied to clipboard
open override fun d(t: Throwable?)

Log a debug exception.

open override fun d(@NonNls message: String?, vararg args: Any?)

Log a debug message with optional format args.

open override fun d(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log a debug exception and a message with optional format args.

Link copied to clipboard
open override fun e(t: Throwable?)

Log an error exception.

open override fun e(@NonNls message: String?, vararg args: Any?)

Log an error message with optional format args.

open override fun e(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log an error exception and a message with optional format args.

Link copied to clipboard

Return a copy of all planted trees.

Link copied to clipboard
open override fun i(t: Throwable?)

Log an info exception.

open override fun i(@NonNls message: String?, vararg args: Any?)

Log an info message with optional format args.

open override fun i(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log an info exception and a message with optional format args.

Link copied to clipboard
open override fun log(priority: Int, t: Throwable?)

Log at priority an exception.

open override fun log(priority: Int, @NonNls message: String?, vararg args: Any?)

Log at priority a message with optional format args.

open override fun log(priority: Int, t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log at priority an exception and a message with optional format args.

Link copied to clipboard
fun plant(vararg trees: Timber.Tree)

Adds new logging trees.

Add a new logging tree.

Link copied to clipboard

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

Link copied to clipboard

Remove a planted tree.

Link copied to clipboard

Remove all planted trees.

Link copied to clipboard
open override fun v(t: Throwable?)

Log a verbose exception.

open override fun v(@NonNls message: String?, vararg args: Any?)

Log a verbose message with optional format args.

open override fun v(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log a verbose exception and a message with optional format args.

Link copied to clipboard
open override fun w(t: Throwable?)

Log a warning exception.

open override fun w(@NonNls message: String?, vararg args: Any?)

Log a warning message with optional format args.

open override fun w(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log a warning exception and a message with optional format args.

Link copied to clipboard
open override fun wtf(t: Throwable?)

Log an assert exception.

open override fun wtf(@NonNls message: String?, vararg args: Any?)

Log an assert message with optional format args.

open override fun wtf(t: Throwable?, @NonNls message: String?, vararg args: Any?)

Log an assert exception and a message with optional format args.