treessence / fr.bipi.tressence.console / ThrowErrorTree / <init>

<init>

ThrowErrorTree(priority: Int = Log.ERROR, filter: Filter = NoFilter.INSTANCE)

An implementation of Timber.Tree which throws java.lang.Error when priority of log is exceeded the limit. Useful for development or test environment.

Parameters

priority - Minimum log priority to throw error. Expects one of constants defined in Log.