class Configuration
Configuration for CallLogging feature
Configuration()
Configuration for CallLogging feature |
var level: Level
Logging level for CallLogging, default is Level.TRACE |
|
var logger: Logger?
Customize Logger, will default to ApplicationEnvironment.log |
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(name: String, provider: (ApplicationCall) -> String?): Unit
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. |
fun Configuration.callIdMdc(name: String = "CallId"): Unit
Put call id into MDC (diagnostic context value) with name |