Shed

object Shed

Entry point for Shed, to put Timber logs into a Room database.

Its functions provide no-op behaviour.

Types

Link copied to clipboard
fun interface LogFilter

A functional interface to determine whether a log entry should be persisted or not.

Functions

Link copied to clipboard
fun createTree(context: Context, entryMaxAge: Duration? = null, keepLatest: Long? = null, includeStackTraces: Boolean = true, filter: Shed.LogFilter = LogFilter { _, _, _, _ -> false }, scope: CoroutineScope = CoroutineScope(EmptyCoroutineContext)): Timber.Tree

Returns a new tree which performs no logging.

Link copied to clipboard

Does nothing and returns immediately.