public static class Timber.DebugTree extends Timber.Tree
Tree for debug builds. Automatically infers the tag from the calling class.| Constructor and Description |
|---|
DebugTree() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createStackElementTag(StackTraceElement element)
Extract the tag which should be used for the message from the
element. |
protected void |
log(int priority,
String tag,
String message,
Throwable t)
Break up
message into maximum-length chunks (if needed) and send to either
Log.println() or
Log.wtf() for logging. |
protected String createStackElementTag(StackTraceElement element)
element. By default
this will use the class name without any anonymous class suffixes (e.g., Foo$1
becomes Foo).
Note: This will not be called if a manual tag was specified.
protected void log(int priority,
String tag,
String message,
Throwable t)
message into maximum-length chunks (if needed) and send to either
Log.println() or
Log.wtf() for logging.
Write a log message to its destination. Called for all level-specific methods by default.log in class Timber.Treepriority - Log level. See Log for constants.tag - Explicit or inferred tag. May be null.message - Formatted log message. May be null, but then t will not be.t - Accompanying exceptions. May be null, but then message will not be.Copyright © 2013-2015. All Rights Reserved.