LogSink

fun interface LogSink(source)

Functional interface for consuming log messages.

The SDK never depends on a specific logging library (no Kermit, Timber, SLF4J, etc.). Apps provide their own LogSink implementation and wire it to RadioClient.Builder.logger. The SDK produces logs without assuming any backend.

Implementations should be lightweight and must not block the engine coroutine for long.

Since

0.1.0

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun log(level: LogLevel, tag: String, message: String, cause: Throwable?)

Log a message at the given level.