TelekLogger

interface TelekLogger

telek's own logging seam: println/java.util.logging are not acceptable in a library, since the consumer can neither redirect nor silence them. Pass an implementation that forwards to whatever the consumer already uses (slf4j, kotlin-logging, ...) — telek has no opinion on the concrete backend and does not depend on one.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun debug(message: String)
Link copied to clipboard
open fun error(message: String, error: Throwable? = null)
Link copied to clipboard
abstract fun log(level: TelekLogLevel, message: String, error: Throwable? = null)
Link copied to clipboard
open fun warn(message: String, error: Throwable? = null)