public final class Plog extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
LOG_ID_PERMISSION |
Modifier and Type | Method | Description |
---|---|---|
static int |
d(String tag,
String msg) |
Send a
Log.DEBUG log message. |
static int |
d(String tag,
String msg,
Throwable tr) |
Send a
Log.DEBUG log message and log the exception. |
static int |
e(String tag,
String msg) |
Send a
Log.ERROR log message. |
static int |
e(String tag,
String msg,
Throwable tr) |
Send a
Log.ERROR log message and log the exception. |
static int |
i(String tag,
String msg) |
Send a
Log.INFO log message. |
static int |
i(String tag,
String msg,
Throwable tr) |
Send a
Log.INFO log message and log the exception |
static int |
println(int priority,
String tag,
String msg) |
Low-level logging call.
|
static int |
v(String tag,
String msg) |
Send a
Log.VERBOSE log message. |
static int |
v(String tag,
String msg,
Throwable tr) |
Send a
Log.VERBOSE log message and log the exception. |
static int |
w(String tag,
String msg) |
Send a
Log.WARN log message |
static int |
w(String tag,
String msg,
Throwable tr) |
Send a
Log.WARN log message and log the exception. |
static int |
w(String tag,
Throwable tr) |
Send a
Log.WARN log message and log the exception. |
static int |
wtf(String tag,
String msg) |
Like
Log.wtf(String, String) , but will never cause the caller to crash, and
will always be handled asynchronously. |
static int |
wtf(String tag,
String msg,
Throwable tr) |
Like
Log.wtf(String, String, Throwable) , but will never cause the caller to crash,
and will always be handled asynchronously. |
static int |
wtf(String tag,
Throwable tr) |
Like
Log.wtf(String, Throwable) , but will never cause the caller to crash,
and will always be handled asynchronously. |
static void |
wtfQuiet(String tag,
String msg) |
Like
wtf(String, String) , but does not output anything to the log. |
static int |
wtfStack(String tag,
String msg) |
Like
Log.wtfStack(String, String) , but will never cause the caller to crash, and
will always be handled asynchronously. |
public static final int LOG_ID_PERMISSION
public static int v(String tag, String msg)
Log.VERBOSE
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.public static int v(String tag, String msg, Throwable tr)
Log.VERBOSE
log message and log the exception.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.tr
- An exception to logpublic static int d(String tag, String msg)
Log.DEBUG
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.public static int d(String tag, String msg, Throwable tr)
Log.DEBUG
log message and log the exception.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.tr
- An exception to logpublic static int i(String tag, String msg)
Log.INFO
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.public static int i(String tag, String msg, Throwable tr)
Log.INFO
log message and log the exceptiontag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.tr
- An exception to logpublic static int w(String tag, String msg)
Log.WARN
log messagetag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.public static int w(String tag, String msg, Throwable tr)
Log.WARN
log message and log the exception.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.tr
- An exception to logpublic static int w(String tag, Throwable tr)
Log.WARN
log message and log the exception.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.tr
- An exception to logpublic static int e(String tag, String msg)
Log.ERROR
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.public static int e(String tag, String msg, Throwable tr)
Log.ERROR
log message and log the exception.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log occurs.msg
- The message you would like logged.tr
- An exception to logpublic static int wtf(String tag, String msg)
Log.wtf(String, String)
, but will never cause the caller to crash, and
will always be handled asynchronously. Primarily for use by coding running within
the system process.public static void wtfQuiet(String tag, String msg)
wtf(String, String)
, but does not output anything to the log.public static int wtfStack(String tag, String msg)
Log.wtfStack(String, String)
, but will never cause the caller to crash, and
will always be handled asynchronously. Primarily for use by coding running within
the system process.public static int wtf(String tag, Throwable tr)
Log.wtf(String, Throwable)
, but will never cause the caller to crash,
and will always be handled asynchronously. Primarily for use by coding running within
the system process.public static int wtf(String tag, String msg, Throwable tr)
Log.wtf(String, String, Throwable)
, but will never cause the caller to crash,
and will always be handled asynchronously. Primarily for use by coding running within
the system process.public static int println(int priority, String tag, String msg)
priority
- The priority/type of this log messagetag
- 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.