isLoggable

fun isLoggable(level: Log.Level): Boolean(source)

Checks if any Log instances installed at Root will accept a log at the provided Level from this Logger instance.

NOTE: This does not need to be called when utilizing Logger logging functions v, d, i, w, e, wtf, or log. Root will perform the same check prior to sending anything to an installed Log instance. This is exposed for the lazyMsg inline function API to mitigate unnecessary String creation, as well as other compatibility extension modules.

Return

true if a log at the provided Level for this Logger would be accepted, false otherwise.

Parameters

level

The level to check for this Logger.

See also