LogFilter

fun interface LogFilter

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

val persistWarnAndHigher = LogFilter { priority, _, _, _ -> priority >= Log.WARN }

See also

Functions

Link copied to clipboard
abstract fun filter(priority: Int, tag: String?, message: String, t: Throwable?): Boolean

Returns true if and only if the log entry should be persisted.