LogSink

fun interface LogSink(source)

Where log records go. Implement it to forward records to your own logging (SLF4J, Logcat, OSLog, crash reporting), or combine the sinks provided here.

write is called on the thread that logs, so it must be quick and thread safe. It must not throw; a failing sink should drop the record.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Passes on only records at level or above, for example to send warnings to a crash reporter.

Link copied to clipboard
operator fun LogSink.plus(other: LogSink): LogSink

Sends each record to this sink and to other.

Link copied to clipboard
abstract fun write(record: LogRecord)