Configuration

class Configuration

Configuration for CallLogging feature

Constructors

<init>

Configuration()

Configuration for CallLogging feature

Properties

level

var level: Level

Logging level for CallLogging, default is Level.TRACE

logger

var logger: Logger?

Customize Logger, will default to ApplicationEnvironment.log

Functions

filter

fun filter(predicate: (ApplicationCall) -> Boolean): Unit

Log messages for calls matching a predicate

format

fun format(formatter: (ApplicationCall) -> String): Unit

Configure application call log message.

mdc

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.

Extension Functions

callIdMdc

fun Configuration.callIdMdc(name: String = "CallId"): Unit

Put call id into MDC (diagnostic context value) with name