Logger

object Logger

Logging facility.

Types

Link copied to clipboard
fun interface LogPrinter

Log printer interface that receives every emitted log entry. Default implementation from getPlatformLogPrinter routes every message to the platform-specific logging facility.

Properties

Link copied to clipboard
Link copied to clipboard

Optional LogPrinter property for overriding the default functionality with a custom implementation.

Functions

Link copied to clipboard
fun d(tag: String, msg: String)
fun d(tag: String, msg: String, throwable: Throwable)
Link copied to clipboard
fun dCbor(tag: String, message: String, encodedCbor: ByteArray)
Link copied to clipboard
fun dHex(tag: String, message: String, data: ByteArray)
Link copied to clipboard
fun dJson(tag: String, message: String, json: JsonElement)
Link copied to clipboard
fun e(tag: String, msg: String)
fun e(tag: String, msg: String, throwable: Throwable)
Link copied to clipboard
fun eCbor(tag: String, message: String, encodedCbor: ByteArray)
Link copied to clipboard
fun eHex(tag: String, message: String, data: ByteArray)
Link copied to clipboard
fun eJson(tag: String, message: String, json: JsonElement)
Link copied to clipboard
fun i(tag: String, msg: String)
fun i(tag: String, msg: String, throwable: Throwable)
Link copied to clipboard
fun iCbor(tag: String, message: String, encodedCbor: ByteArray)
Link copied to clipboard
fun iHex(tag: String, message: String, data: ByteArray)
Link copied to clipboard
fun iJson(tag: String, message: String, json: JsonElement)
Link copied to clipboard
fun startLoggingToFile(logPath: Path)
Link copied to clipboard
Link copied to clipboard
fun w(tag: String, msg: String)
fun w(tag: String, msg: String, throwable: Throwable)
Link copied to clipboard
fun wCbor(tag: String, message: String, encodedCbor: ByteArray)
Link copied to clipboard
fun wHex(tag: String, message: String, data: ByteArray)
Link copied to clipboard
fun wJson(tag: String, message: String, json: JsonElement)