You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension Timber.log(Int, Throwable, () -> String) method calls isLoggable() which will be true when any of the installed Trees return true. It will then go on to call rawLog on all Trees, even those where isLoggable() returns true.
We still get the message evaluated just once and each tree logs only if its own isLoggable returns true. The only downside is that each tree will call it twice.
Which... well, Log.isLoggable goes to native, but that's for debug builds, so who cares.
(master branch)
The extension
Timber.log(Int, Throwable, () -> String)
method callsisLoggable()
which will be true when any of the installed Trees return true. It will then go on to call rawLog on all Trees, even those whereisLoggable()
returns true.For example
prints
The text was updated successfully, but these errors were encountered: