public class Log
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ASSERT |
static int |
DEBUG |
static int |
ERROR |
static int |
INFO |
static java.lang.String |
TAG
Logging tags
|
static java.lang.String |
TAG_ACTION |
static java.lang.String |
TAG_BATCHER |
static java.lang.String |
TAG_BLOB_STORE |
static java.lang.String |
TAG_CHANGE_TRACKER |
static java.lang.String |
TAG_DATABASE |
static java.lang.String |
TAG_LISTENER |
static java.lang.String |
TAG_MULTI_STREAM_WRITER |
static java.lang.String |
TAG_QUERY |
static java.lang.String |
TAG_REMOTE_REQUEST |
static java.lang.String |
TAG_ROUTER |
static java.lang.String |
TAG_SYMMETRIC_KEY |
static java.lang.String |
TAG_SYNC |
static java.lang.String |
TAG_SYNC_ASYNC_TASK |
static java.lang.String |
TAG_VIEW |
static int |
VERBOSE
Logging levels -- values match up with android.util.Log
|
static int |
WARN |
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
d(java.lang.String tag,
java.lang.String msg)
Send a DEBUG message.
|
static void |
d(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a DEBUG message.
|
static void |
d(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a DEBUG message and log the exception.
|
static void |
d(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a DEBUG message and log the exception.
|
static void |
e(java.lang.String tag,
java.lang.String msg)
Send an ERROR message.
|
static void |
e(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a ERROR message.
|
static void |
e(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a ERROR message and log the exception.
|
static void |
e(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a ERROR message and log the exception.
|
static void |
enableLogging(java.lang.String tag,
int logLevel)
Enable logging for a particular tag / loglevel combo
|
static void |
i(java.lang.String tag,
java.lang.String msg)
Send an INFO message.
|
static void |
i(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send an INFO message.
|
static void |
i(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a INFO message and log the exception.
|
static void |
i(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a INFO message and log the exception.
|
static void |
v(java.lang.String tag,
java.lang.String msg)
Send a VERBOSE message.
|
static void |
v(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a VERBOSE message.
|
static void |
v(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a VERBOSE message and log the exception.
|
static void |
v(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a VERBOSE message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.String msg)
Send a WARN message.
|
static void |
w(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a WARN message.
|
static void |
w(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a WARN message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a WARN message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.Throwable tr)
Send a WARN message and log the exception.
|
public static final java.lang.String TAG
public static final java.lang.String TAG_SYNC
public static final java.lang.String TAG_BATCHER
public static final java.lang.String TAG_SYNC_ASYNC_TASK
public static final java.lang.String TAG_REMOTE_REQUEST
public static final java.lang.String TAG_VIEW
public static final java.lang.String TAG_QUERY
public static final java.lang.String TAG_CHANGE_TRACKER
public static final java.lang.String TAG_ROUTER
public static final java.lang.String TAG_DATABASE
public static final java.lang.String TAG_LISTENER
public static final java.lang.String TAG_MULTI_STREAM_WRITER
public static final java.lang.String TAG_BLOB_STORE
public static final java.lang.String TAG_SYMMETRIC_KEY
public static final java.lang.String TAG_ACTION
public static final int VERBOSE
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int ASSERT
public static void enableLogging(java.lang.String tag,
int logLevel)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.logLevel - The loglevel to enable. Anything matching this loglevel
or having a more urgent loglevel will be emitted. Eg, Log.VERBOSE.public static void v(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void v(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void v(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void v(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void d(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void d(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void d(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void d(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void i(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void i(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void i(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void i(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void w(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void w(java.lang.String tag,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr - An exception to logpublic static void w(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void w(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void w(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void e(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void e(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void e(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void e(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.