interface LogProvider
source · line 7public
public interface LogProvider
Receives evaluated events. Methods can be called concurrently and must synchronize their own mutable state. Exceptions from these methods are recovered by Logger and Log.flush.
function isEnabled
source · line 9public
public fun isEnabled(level: LogLevel, target: String): Boolean
Checks whether to evaluate and submit an event, without producing output.
parameter target
source · line 9public
target: String
parameter level
source · line 9public
level: LogLevel
function flush
source · line 13public
public fun flush(): Unit
Submits events accepted before this call without closing the provider.
function emit
source · line 11public
public fun emit(record: LogRecord): Unit
Accepts an event that has passed this provider's filter.
parameter record
source · line 11public
record: LogRecord