Configuration
class Configuration
Configuration for CallLogging feature
Constructors
Configuration() Configuration for CallLogging feature |
Properties
var level: Level Logging level for CallLogging, default is Level.TRACE |
|
var logger: Logger? Customize Logger, will default to ApplicationEnvironment.log |
Functions
fun filter(predicate: (ApplicationCall) -> Boolean): Unit Log messages for calls matching a predicate |
|
fun format(formatter: (ApplicationCall) -> String): Unit Configure application call log message. |
|
fun mdc( Put a diagnostic context value to MDC with the specified name and computed using provider function. A value will be available in MDC only during ApplicationCall lifetime and will be removed after call processing. |
Extension Functions
fun Configuration.callIdMdc(name: String = "CallId"): Unit Put call id into MDC (diagnostic context value) with name |