Log Class
A helper class for logging to the Android console.
Methods
Type | Signature |
static void |
setMessagePrefix(String prefix)
Sets the message prefix, which will be appended to the beginning of every log. |
static int |
v(String tag, String msg)
Logs a verbose log. |
static int |
v(String tag, String msg, Throwable tr)
Logs a verbose log with an exception. |
static int |
d(String tag, String msg)
Logs a debug log. |
static int |
d(String tag, String msg, Throwable tr)
Logs a debug log with an exception. |
static int |
i(String tag, String msg)
Logs an info log. |
static int |
i(String tag, String msg, Throwable tr)
Logs an info log with an exception. |
static int |
w(String tag, String msg)
Logs a warning log. |
static int |
w(String tag, String msg, Throwable tr)
Logs a warning log with an exception. |
static int |
e(String tag, String msg)
Logs an error log. |
static int |
e(String tag, String msg, Throwable tr)
Logs an error log with an exception. |
static int |
wtf(String tag, String msg)
Logs a "What a Terrible Failure" log. |
static int |
wtf(String tag, String msg, Throwable tr)
Logs a "What a Terrible Failure" log with an exception. |