| Modifier and Type | Field | Description |
|---|---|---|
static int |
LOG_LEVEL_ALL |
Log level to log all messages.
|
static int |
LOG_LEVEL_ERROR |
Log level to only log error messages.
|
static int |
LOG_LEVEL_INFO |
Log level to only log informative, warning and error messages.
|
static int |
LOG_LEVEL_OFF |
Log level to disable all logging.
|
static int |
LOG_LEVEL_WARNING |
Log level to only log warning and error messages.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
d(String tag,
String message) |
|
static void |
d(String tag,
String message,
Throwable throwable) |
|
static void |
e(String tag,
String message) |
|
static void |
e(String tag,
String message,
Throwable throwable) |
|
static int |
getLogLevel() |
Returns current
Log.LogLevel for ExoPlayer logcat logging. |
boolean |
getLogStackTraces() |
Returns whether stack traces of
Throwables will be logged to logcat. |
static String |
getThrowableString(Throwable throwable) |
Returns a string representation of a
Throwable suitable for logging, taking into
account whether setLogStackTraces(boolean) stack trace logging} is enabled. |
static void |
i(String tag,
String message) |
|
static void |
i(String tag,
String message,
Throwable throwable) |
|
static void |
setLogLevel(int logLevel) |
Sets the
Log.LogLevel for ExoPlayer logcat logging. |
static void |
setLogStackTraces(boolean logStackTraces) |
Sets whether stack traces of
Throwables will be logged to logcat. |
static void |
w(String tag,
String message) |
|
static void |
w(String tag,
String message,
Throwable throwable) |
public static final int LOG_LEVEL_ALL
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_WARNING
public static final int LOG_LEVEL_ERROR
public static final int LOG_LEVEL_OFF
@Pure @LogLevel public static int getLogLevel()
Log.LogLevel for ExoPlayer logcat logging.@Pure public boolean getLogStackTraces()
Throwables will be logged to logcat.public static void setLogLevel(@LogLevel
int logLevel)
Log.LogLevel for ExoPlayer logcat logging.logLevel - The new Log.LogLevel.public static void setLogStackTraces(boolean logStackTraces)
Throwables will be logged to logcat. Stack trace logging
is enabled by default.logStackTraces - Whether stack traces will be logged.@Pure public static void d(String tag, String message)
Log.d(String, String)@Pure public static void d(String tag, String message, @Nullable Throwable throwable)
Log.d(String, String, Throwable)@Pure public static void i(String tag, String message)
Log.i(String, String)@Pure public static void i(String tag, String message, @Nullable Throwable throwable)
Log.i(String, String, Throwable)@Pure public static void w(String tag, String message)
Log.w(String, String)@Pure public static void w(String tag, String message, @Nullable Throwable throwable)
Log.w(String, String, Throwable)@Pure public static void e(String tag, String message)
Log.e(String, String)@Pure public static void e(String tag, String message, @Nullable Throwable throwable)
Log.e(String, String, Throwable)@Nullable @Pure public static String getThrowableString(@Nullable Throwable throwable)
Throwable suitable for logging, taking into
account whether setLogStackTraces(boolean) stack trace logging} is enabled.
Stack trace logging may be unconditionally suppressed for some expected failure modes (e.g.,
Throwables that are expected if the device doesn't have network connectivity)
to avoid log spam.