public class Log
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
d(java.lang.String msg)
Log a debug-level message with a tag of
LOG_TAG to the Android log. |
static int |
dDebug(java.lang.String msg)
Log a debug-level message with a tag of
LOG_TAG to the Android log,
but only if debug is true. |
static int |
e(java.lang.String msg)
Log an error-level message with a tag of
LOG_TAG to the Android log. |
static int |
eDebug(java.lang.String msg)
Log an error-level message with a tag of
LOG_TAG to the Android log,
but only if debug it true. |
static int |
i(java.lang.String msg)
Log an info-level message with a tag of
LOG_TAG to the Android log. |
static int |
iDebug(java.lang.String msg)
Log an info-level message with a tag of
LOG_TAG to the Android log,
but only if debug is true. |
static boolean |
isDebugEnabled()
Returns the current state of debug.
|
static void |
setDebug(boolean debug)
Set or reset debug state.
|
static int |
v(java.lang.String msg)
Log a verbose-level message with a tag of
LOG_TAG to the Android log. |
static int |
vDebug(java.lang.String msg)
Log a verbose-level message with a tag of
LOG_TAG to the Android log,
but only if debug is true. |
static int |
w(java.lang.String msg)
Log a warning-level message with a tag of
LOG_TAG to the Android log. |
static int |
wDebug(java.lang.String msg)
Log a warning-level message with a tag of
LOG_TAG to the Android log,
but only if debug is true. |
public static void setDebug(boolean debug)
debug
- new state of the debug flagpublic static boolean isDebugEnabled()
public static int d(java.lang.String msg)
LOG_TAG
to the Android log.
This log can be viewed using the adb logcat command.msg
- the message to logpublic static int dDebug(java.lang.String msg)
LOG_TAG
to the Android log,
but only if debug is true. This log can be viewed using the adb logcat command.msg
- the message to logpublic static int e(java.lang.String msg)
LOG_TAG
to the Android log.
This log can be viewed using the adb logcat command.msg
- the message to logpublic static int eDebug(java.lang.String msg)
LOG_TAG
to the Android log,
but only if debug it true. This log can be viewed using the adb logcat command.msg
- the message to logpublic static int i(java.lang.String msg)
LOG_TAG
to the Android log.
This log can be viewed using the adb logcat command.msg
- the message to logpublic static int iDebug(java.lang.String msg)
LOG_TAG
to the Android log,
but only if debug is true. This log can be viewed using the adb logcat command.msg
- the message to logpublic static int v(java.lang.String msg)
LOG_TAG
to the Android log.
This log can be viewed using the adb logcat command.msg
- the message to logpublic static int vDebug(java.lang.String msg)
LOG_TAG
to the Android log,
but only if debug is true. This log can be viewed using the adb logcat command.msg
- the message to logpublic static int w(java.lang.String msg)
LOG_TAG
to the Android log.
This log can be viewed using the adb logcat command.msg
- the message to logpublic static int wDebug(java.lang.String msg)
LOG_TAG
to the Android log,
but only if debug is true. This log can be viewed using the adb logcat command.msg
- the message to log