public final class Timber
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Timber.DebugTree
A
Tree for debug builds. |
static class |
Timber.Tree
A facade for handling logging calls.
|
Modifier and Type | Method and Description |
---|---|
static Timber.Tree |
asTree()
A view into Timber's planted trees as a tree itself.
|
static void |
d(java.lang.String message,
java.lang.Object... args)
Log a debug message with optional format args.
|
static void |
d(java.lang.Throwable t)
Log a debug exception.
|
static void |
d(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log a debug exception and a message with optional format args.
|
static void |
e(java.lang.String message,
java.lang.Object... args)
Log an error message with optional format args.
|
static void |
e(java.lang.Throwable t)
Log an error exception.
|
static void |
e(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log an error exception and a message with optional format args.
|
static java.util.List<Timber.Tree> |
forest()
Return a copy of all planted trees.
|
static void |
i(java.lang.String message,
java.lang.Object... args)
Log an info message with optional format args.
|
static void |
i(java.lang.Throwable t)
Log an info exception.
|
static void |
i(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log an info exception and a message with optional format args.
|
static void |
log(int priority,
java.lang.String message,
java.lang.Object... args)
Log at
priority a message with optional format args. |
static void |
log(int priority,
java.lang.Throwable t)
Log at
priority an exception. |
static void |
log(int priority,
java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log at
priority an exception and a message with optional format args. |
static void |
plant(Timber.Tree... trees)
Adds new logging trees.
|
static void |
plant(Timber.Tree tree)
Add a new logging tree.
|
static Timber.Tree |
tag(java.lang.String tag)
Set a one-time tag for use on the next logging call.
|
static int |
treeCount() |
static void |
uproot(Timber.Tree tree)
Remove a planted tree.
|
static void |
uprootAll()
Remove all planted trees.
|
static void |
v(java.lang.String message,
java.lang.Object... args)
Log a verbose message with optional format args.
|
static void |
v(java.lang.Throwable t)
Log a verbose exception.
|
static void |
v(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log a verbose exception and a message with optional format args.
|
static void |
w(java.lang.String message,
java.lang.Object... args)
Log a warning message with optional format args.
|
static void |
w(java.lang.Throwable t)
Log a warning exception.
|
static void |
w(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log a warning exception and a message with optional format args.
|
static void |
wtf(java.lang.String message,
java.lang.Object... args)
Log an assert message with optional format args.
|
static void |
wtf(java.lang.Throwable t)
Log an assert exception.
|
static void |
wtf(java.lang.Throwable t,
java.lang.String message,
java.lang.Object... args)
Log an assert exception and a message with optional format args.
|
public static void v(java.lang.String message, java.lang.Object... args)
public static void v(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void v(java.lang.Throwable t)
public static void d(java.lang.String message, java.lang.Object... args)
public static void d(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void d(java.lang.Throwable t)
public static void i(java.lang.String message, java.lang.Object... args)
public static void i(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void i(java.lang.Throwable t)
public static void w(java.lang.String message, java.lang.Object... args)
public static void w(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void w(java.lang.Throwable t)
public static void e(java.lang.String message, java.lang.Object... args)
public static void e(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void e(java.lang.Throwable t)
public static void wtf(java.lang.String message, java.lang.Object... args)
public static void wtf(java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
public static void wtf(java.lang.Throwable t)
public static void log(int priority, java.lang.String message, java.lang.Object... args)
priority
a message with optional format args.public static void log(int priority, java.lang.Throwable t, java.lang.String message, java.lang.Object... args)
priority
an exception and a message with optional format args.public static void log(int priority, java.lang.Throwable t)
priority
an exception.public static Timber.Tree asTree()
public static Timber.Tree tag(java.lang.String tag)
public static void plant(Timber.Tree tree)
public static void plant(Timber.Tree... trees)
public static void uproot(Timber.Tree tree)
public static void uprootAll()
public static java.util.List<Timber.Tree> forest()
public static int treeCount()