public static class XTimber.DebugTree extends XTimber.Tree
Tree for debug builds. Automatically infers the tag from the calling class.XTimber.Tree.MethodLocation| 构造器和说明 |
|---|
DebugTree() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.String |
createStackElementTag(java.lang.StackTraceElement element)
Extract the tag which should be used for the message from the
element. |
protected void |
log(int priority,
java.lang.String tag,
java.lang.String message,
java.lang.Throwable t)
Break up
message into maximum-length chunks (if needed) and send to either
Log.println() or
Log.wtf() for logging. |
protected java.lang.String createStackElementTag(java.lang.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,
java.lang.String tag,
java.lang.String message,
java.lang.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 在类中 XTimber.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.