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 your Log implementation.

Methods

d

void d(String tag, String msg)

Called when a DEBUG 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.

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

void i(String tag, String msg)

Called when an INFO 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.

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

static void setLog(Log log)

Set and use given Log object. If passed Log is not null, calling SCMEnvironment.startRemoteLogsRecording(String) is not possible.

Parameters:
  • log – a Log object to use for logging, or null for resetting to default behaviour.

traceNative

void traceNative(String msg)

Called when a message coming from Idopte Middleware native code is sent. Log level is not specified.

Parameters:
  • msg – The message you would like logged. This value cannot be null.

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

void w(String tag, String msg)

Called when a WARN 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.

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.