Logger
object Logger
Logging class for manage logcat in a debug/release mode. Under the hood we used Timber.
Example:
Logger.apply {
tag = "Tick"
isDebug = BuildConfig.DEBUG
onFilter { tag, message, throwable, level ->
if (level == LogLevel.ERROR) {
if (tag != null) {
YandexMetrica.reportError(tag, message, throwable)
} else {
YandexMetrica.reportError(message, throwable)
}
}
}
}
Logger.info(message = "Hello Affogato!")
Content copied to clipboard
Since
1.5.0