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 |
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 |
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 |
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 |
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 |
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 |
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> |