Log¶
-
public interface
Log
¶ Interface used for logging messages from middleware. Create a class implementing this interface and call
Log.setLog(Log)
to redirect all traces to yourLog
implementation.
Methods¶
d¶
d¶
-
void
d
(String tag, String msg, Throwable tr)¶ Called when a DEBUG log message and an exception are sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value may be null.
- tr – An exception to log. This value may be null.
e¶
-
void
e
(String tag, String msg)¶ Called when an ERROR log message is sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value cannot be null.
e¶
-
void
e
(String tag, String msg, Throwable tr)¶ Called when a ERROR log message and an exception are sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value may be null.
- tr – An exception to log. This value may be null.
i¶
i¶
-
void
i
(String tag, String msg, Throwable tr)¶ Called when a INFO log message and an exception are sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value may be null.
- tr – An exception to log. This value may be null.
setLog¶
traceNative¶
v¶
-
void
v
(String tag, String msg)¶ Called when a VERBOSE log message is sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value cannot be null.
v¶
-
void
v
(String tag, String msg, Throwable tr)¶ Called when a VERBOSE log message and an exception are sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value may be null.
- tr – An exception to log. This value may be null.
w¶
w¶
-
void
w
(String tag, String msg, Throwable tr)¶ Called when a WARN log message and an exception are sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value may be null.
- tr – An exception to log. This value may be null.
wtf¶
-
void
wtf
(String tag, String msg)¶ What a Terrible Failure: Called when an exception that should never happen is sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value cannot be null.
wtf¶
-
void
wtf
(String tag, String msg, Throwable tr)¶ What a Terrible Failure: Called when an exception that should never happen is sent.
Parameters: - tag – Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs. This value may be null.
- msg – The message you would like logged. This value cannot be null.
- tr – An exception to log. This value may be null.