public interface Log.Logger


Interface for a logger that can output messages with a tag.

Use DEFAULT to output to android.util.Log.

Summary

Constants

default static final Log.Logger

The default instance logging to android.util.Log.

Public methods

abstract void
d(String tag, String message, @Nullable Throwable throwable)

Logs a debug-level message with an optional associated Throwable.

abstract void
e(String tag, String message, @Nullable Throwable throwable)

Logs an error-level message with an optional associated Throwable.

abstract void
i(String tag, String message, @Nullable Throwable throwable)

Logs an information-level message with an optional associated Throwable.

abstract void
w(String tag, String message, @Nullable Throwable throwable)

Logs a warning-level message with an optional associated Throwable.

Constants

DEFAULT

default static final Log.Logger DEFAULT

The default instance logging to android.util.Log.

Public methods

d

abstract void d(String tag, String message, @Nullable Throwable throwable)

Logs a debug-level message with an optional associated Throwable.

Parameters
String tag

The tag of the message.

String message

The message.

@Nullable Throwable throwable

The Throwable associated with the message, or null if not specified.

e

abstract void e(String tag, String message, @Nullable Throwable throwable)

Logs an error-level message with an optional associated Throwable.

Parameters
String tag

The tag of the message.

String message

The message.

@Nullable Throwable throwable

The Throwable associated with the message, or null if not specified.

i

abstract void i(String tag, String message, @Nullable Throwable throwable)

Logs an information-level message with an optional associated Throwable.

Parameters
String tag

The tag of the message.

String message

The message.

@Nullable Throwable throwable

The Throwable associated with the message, or null if not specified.

w

abstract void w(String tag, String message, @Nullable Throwable throwable)

Logs a warning-level message with an optional associated Throwable.

Parameters
String tag

The tag of the message.

String message

The message.

@Nullable Throwable throwable

The Throwable associated with the message, or null if not specified.