measureMillis

fun <T> Logger.measureMillis(level: Level, message: String, block: () -> T): T(source)

Measure and log code execution time in milliseconds.

Parameters

level

the log level

message

the action performed

block

the function to run