setLogLevel

open fun setLogLevel(logLevel: Int): GlideBuilder

Sets a log level constant from those in Log to indicate the desired log verbosity.

The level must be one of VERBOSE, DEBUG, INFO, WARN, or ERROR.

VERBOSE means one or more lines will be logged per request, including timing logs and failures. DEBUG means at most one line will be logged per successful request, including timing logs, although many lines may be logged for failures including multiple complete stack traces. INFO means failed loads will be logged including multiple complete stack traces, but successful loads will not be logged at all. WARN means only summaries of failed loads will be logged. ERROR means only exceptional cases will be logged.

All logs will be logged using the 'Glide' tag.

Many other debugging logs are available in individual classes. The log level supplied here only controls a small set of informative and well formatted logs. Users wishing to debug certain aspects of the library can look for individual TAG variables at the tops of classes and use adb shell setprop log.tag.TAG to enable or disable any relevant tags.

Return

This builder.

Parameters

logLevel

The log level to use from Log.