setup

fun setup(isDebug: Boolean, releaseSink: TimberLogger.ReleaseLogSink? = null)

Plants a Timber.DebugTree in debug builds, or a release tree that drops verbose/debug/info logs and forwards warnings and errors to releaseSink (e.g. a crash-reporting breadcrumb/non-fatal recorder). With no sink, release builds log nothing.

Safe to call more than once: the tree planted by a previous call is uprooted first, so repeated setup never duplicates output. Trees planted directly via Timber.plant are left alone.