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

Whether to print debug messages or not.

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)
fun dCbor(tag: String, message: String, dataItem: DataItem)
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 dJwt(tag: String, message: String, jwtString: String)

Prints a debug log message pretty-printing the decoded header and payload of a JWT string.

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)
fun eCbor(tag: String, message: String, dataItem: DataItem)
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 eJwt(tag: String, message: String, jwtString: String)

Prints an error log message pretty-printing the decoded header and payload of a JWT string.

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)
fun iCbor(tag: String, message: String, dataItem: DataItem)
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 iJwt(tag: String, message: String, jwtString: String)

Prints an info log message pretty-printing the decoded header and payload of a JWT string.

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)
fun wCbor(tag: String, message: String, dataItem: DataItem)
Link copied to clipboard
fun wHex(tag: String, message: String, data: ByteArray)
Link copied to clipboard
fun wJson(tag: String, message: String, json: JsonElement)
Link copied to clipboard
fun wJwt(tag: String, message: String, jwtString: String)

Prints a warning log message pretty-printing the decoded header and payload of a JWT string.