hwsecurity / de.cotech.hw.util / HwTimber /

HwTimber

class HwTimber

Last Java version of Timber from https://github.com/JakeWharton/timber/blob/0b84566c667a9b9d0559787ea28417e75377cd38/timber/src/main/java/timber/log/Timber.java

Types

Name Summary
DebugTree

open class DebugTree : HwTimber.Tree

A Tree for debug builds.

Tree

abstract class Tree

A facade for handling logging calls.

Functions

Name Summary
asTree

open fun asTree(): HwTimber.Tree

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

d

open fun d(t: Throwable)

Log a debug exception.

open fun d(message: String, args: Array<Any>)

Log a debug message with optional format args.

open fun d(t: Throwable, message: String, args: Array<Any>)

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

e

open fun e(t: Throwable)

Log an error exception.

open fun e(message: String, args: Array<Any>)

Log an error message with optional format args.

open fun e(t: Throwable, message: String, args: Array<Any>)

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

forest

open fun forest(): List<HwTimber.Tree>

Return a copy of all planted trees.

i

open fun i(t: Throwable)

Log an info exception.

open fun i(message: String, args: Array<Any>)

Log an info message with optional format args.

open fun i(t: Throwable, message: String, args: Array<Any>)

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

log

open fun log(priority: Int, t: Throwable)

Log at {@code priority} an exception.

open fun log(priority: Int, message: String, args: Array<Any>)

Log at {@code priority} a message with optional format args.

open fun log(priority: Int, t: Throwable, message: String, args: Array<Any>)

Log at {@code priority} an exception and a message with optional format args.

plant

open fun plant(trees: Array<HwTimber.Tree>)

Adds new logging trees.

open fun plant(tree: HwTimber.Tree)

Add a new logging tree.

tag

open fun tag(tag: String): HwTimber.Tree

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

treeCount open fun treeCount(): Int
uproot

open fun uproot(tree: HwTimber.Tree)

Remove a planted tree.

uprootAll

open fun uprootAll()

Remove all planted trees.

v

open fun v(t: Throwable)

Log a verbose exception.

open fun v(message: String, args: Array<Any>)

Log a verbose message with optional format args.

open fun v(t: Throwable, message: String, args: Array<Any>)

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

w

open fun w(t: Throwable)

Log a warning exception.

open fun w(message: String, args: Array<Any>)

Log a warning message with optional format args.

open fun w(t: Throwable, message: String, args: Array<Any>)

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

wtf

open fun wtf(t: Throwable)

Log an assert exception.

open fun wtf(message: String, args: Array<Any>)

Log an assert message with optional format args.

open fun wtf(t: Throwable, message: String, args: Array<Any>)

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

Properties

Name Summary
forestAsArray open val forestAsArray: Array<HwTimber.Tree>