public abstract static class Timber.Tree extends Object
Timber.plant()
.Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
void |
d(String message,
Object... args)
Log a debug message with optional format args.
|
void |
d(Throwable t,
String message,
Object... args)
Log a debug exception and a message with optional format args.
|
void |
e(String message,
Object... args)
Log an error message with optional format args.
|
void |
e(Throwable t,
String message,
Object... args)
Log an error exception and a message with optional format args.
|
void |
i(String message,
Object... args)
Log an info message with optional format args.
|
void |
i(Throwable t,
String message,
Object... args)
Log an info exception and a message with optional format args.
|
protected boolean |
isLoggable(int priority)
Return whether a message at
priority should be logged. |
protected abstract void |
log(int priority,
String tag,
String message,
Throwable t)
Write a log message to its destination.
|
void |
v(String message,
Object... args)
Log a verbose message with optional format args.
|
void |
v(Throwable t,
String message,
Object... args)
Log a verbose exception and a message with optional format args.
|
void |
w(String message,
Object... args)
Log a warning message with optional format args.
|
void |
w(Throwable t,
String message,
Object... args)
Log a warning exception and a message with optional format args.
|
void |
wtf(String message,
Object... args)
Log an assert message with optional format args.
|
void |
wtf(Throwable t,
String message,
Object... args)
Log an assert exception and a message with optional format args.
|
public void v(Throwable t, String message, Object... args)
public void d(Throwable t, String message, Object... args)
public void i(Throwable t, String message, Object... args)
public void w(Throwable t, String message, Object... args)
public void e(Throwable t, String message, Object... args)
public void wtf(String message, Object... args)
public void wtf(Throwable t, String message, Object... args)
protected boolean isLoggable(int priority)
priority
should be logged.protected abstract void log(int priority, String tag, String message, Throwable t)
priority
- 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.