public interface LogDelegate
LogDelegate is an interface for implementing objects with same method interface
as Android's android.util.Log| Modifier and Type | Method and Description |
|---|---|
int |
d(java.lang.String tag,
java.lang.String message)
Send a
#DEBUG log message. |
int |
d(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Send a
#DEBUG log message and log the exception. |
int |
e(java.lang.String tag,
java.lang.String message)
Send an
#ERROR log message. |
int |
e(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Send a
#ERROR log message and log the exception. |
java.lang.String |
getStackTraceString(java.lang.Throwable throwable)
Handy function to get a loggable stack trace from a
Throwable |
int |
i(java.lang.String tag,
java.lang.String message)
Send an
#INFO log message. |
int |
i(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Send a
#INFO log message and log the exception. |
boolean |
isLoggable(java.lang.String tag,
int level)
Checks to see whether or not a log for the specified tag is loggable at the specified level.
|
int |
println(int priority,
java.lang.String tag,
java.lang.String message)
Low-level logging call.
|
int |
v(java.lang.String tag,
java.lang.String message)
Send a
#VERBOSE log message. |
int |
v(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Send a
#VERBOSE log message and log the exception. |
int |
w(java.lang.String tag,
java.lang.String message)
Send a
#WARN log message. |
int |
w(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
Send a
#WARN log message and log the exception. |
int |
w(java.lang.String tag,
java.lang.Throwable throwable) |
int |
wtf(java.lang.String tag,
java.lang.String message)
What a Terrible Failure: Report a condition that should never happen.
|
int |
wtf(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
What a Terrible Failure: Report an exception that should never happen.
|
int |
wtf(java.lang.String tag,
java.lang.Throwable throwable)
What a Terrible Failure: Report an exception that should never happen.
|
int v(java.lang.String tag,
java.lang.String message)
#VERBOSE log message.tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged.int v(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
#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 call occurs.message - The message you would like logged.throwable - An exception to logint d(java.lang.String tag,
java.lang.String message)
#DEBUG log message.tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged.int d(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
#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 call occurs.message - The message you would like logged.throwable - An exception to logint i(java.lang.String tag,
java.lang.String message)
#INFO log message.tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged.int i(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
#INFO 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 call occurs.message - The message you would like logged.throwable - An exception to logint w(java.lang.String tag,
java.lang.String message)
#WARN log message.tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged.int w(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
#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 call occurs.message - The message you would like logged.throwable - An exception to logboolean isLoggable(java.lang.String tag,
int level)
tag - The tag to check.level - The level to check.java.lang.IllegalArgumentException - is thrown if the tag.length() > 23.int w(java.lang.String tag,
java.lang.Throwable throwable)
int e(java.lang.String tag,
java.lang.String message)
#ERROR log message.tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.message - The message you would like logged.int e(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
#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 call occurs.message - The message you would like logged.throwable - An exception to logint wtf(java.lang.String tag,
java.lang.String message)
tag - Used to identify the source of a log message.message - The message you would like logged.int wtf(java.lang.String tag,
java.lang.Throwable throwable)
wtf(String, String), with an exception to log.tag - Used to identify the source of a log message.throwable - An exception to log.int wtf(java.lang.String tag,
java.lang.String message,
java.lang.Throwable throwable)
wtf(String, Throwable), with a message as well.tag - Used to identify the source of a log message.message - The message you would like logged.throwable - A Throwable to log. May be null.java.lang.String getStackTraceString(java.lang.Throwable throwable)
Throwablethrowable - An exception to logint println(int priority,
java.lang.String tag,
java.lang.String message)
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.message - The message you would like logged.