public interface

Log.Logger

 androidx.media3.common.util.Log.Logger

Overview

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

Use Log.Logger.DEFAULT to output to .

Summary

Fields
public static final Log.LoggerDEFAULT

The default instance logging to .

Methods
public voidd(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

public voide(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

public voidi(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

public voidw(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

Fields

public static final Log.Logger DEFAULT

The default instance logging to .

Methods

public void d(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

Parameters:

tag: The tag of the message.
message: The message.
throwable: The java.lang.Throwable associated with the message, or null if not specified.

public void i(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

Parameters:

tag: The tag of the message.
message: The message.
throwable: The java.lang.Throwable associated with the message, or null if not specified.

public void w(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

Parameters:

tag: The tag of the message.
message: The message.
throwable: The java.lang.Throwable associated with the message, or null if not specified.

public void e(java.lang.String tag, java.lang.String message, java.lang.Throwable throwable)

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

Parameters:

tag: The tag of the message.
message: The message.
throwable: The java.lang.Throwable associated with the message, or null if not specified.