public class Log extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE
Logging Tag for Database related operations
|
static int |
DEBUG
Priority constant for the println method; use Log.d.
|
static int |
ERROR
Priority constant for the println method; use Log.e.
|
static int |
INFO
Priority constant for the println method; use Log.i.
|
static int |
NONE |
static String |
QUERY
Logging Tag for Query related operations
|
static String |
SYNC
Logging Tag for Sync related operations
|
static int |
VERBOSE
Priority constant for the println method; use Log.v.
|
static int |
WARN
Priority constant for the println method; use Log.w.
|
static String |
WebSocket
Logging Tag for Sync related operations
|
Modifier and Type | Method and Description |
---|---|
static void |
e(String tag,
String msg)
Send an ERROR message.
|
static void |
e(String tag,
String formatString,
Object... args)
Send a ERROR message.
|
static void |
e(String tag,
String msg,
Throwable tr)
Send a ERROR message and log the exception.
|
static void |
e(String tag,
String formatString,
Throwable tr,
Object... args)
Send a ERROR message and log the exception.
|
static void |
i(String tag,
String msg)
Send an INFO message.
|
static void |
i(String tag,
String formatString,
Object... args)
Send an INFO message.
|
static void |
i(String tag,
String msg,
Throwable tr)
Send a INFO message and log the exception.
|
static void |
i(String tag,
String formatString,
Throwable tr,
Object... args)
Send a INFO message and log the exception.
|
static void |
v(String tag,
String msg)
Send a VERBOSE message.
|
static void |
v(String tag,
String formatString,
Object... args)
Send a VERBOSE message.
|
static void |
v(String tag,
String msg,
Throwable tr)
Send a VERBOSE message and log the exception.
|
static void |
v(String tag,
String formatString,
Throwable tr,
Object... args)
Send a VERBOSE message and log the exception.
|
static void |
w(String tag,
String msg)
Send a WARN message.
|
static void |
w(String tag,
String formatString,
Object... args)
Send a WARN message.
|
static void |
w(String tag,
String msg,
Throwable tr)
Send a WARN message and log the exception.
|
static void |
w(String tag,
String formatString,
Throwable tr,
Object... args)
Send a WARN message and log the exception.
|
static void |
w(String tag,
Throwable tr)
Send a WARN message and log the exception.
|
public static final String DATABASE
public static final String QUERY
public static final String SYNC
public static final String WebSocket
public static final int DEBUG
public static final int VERBOSE
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int NONE
public static void v(String tag, 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(String tag, String msg, 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(String tag, String formatString, 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(String tag, String formatString, Throwable tr, 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(String tag, 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(String tag, String msg, 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(String tag, String formatString, 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(String tag, String formatString, Throwable tr, 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(String tag, 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(String tag, 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(String tag, String msg, 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(String tag, String formatString, 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(String tag, String formatString, Throwable tr, 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(String tag, 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(String tag, String msg, 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(String tag, String formatString, Throwable tr, 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(String tag, String formatString, 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.