LoggingConfig

A configuration for the Logging plugin.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Specifies the logging level.

Link copied to clipboard

Specifies a Logger instance.

Functions

Link copied to clipboard
fun filter(predicate: (HttpRequestBuilder) -> Boolean)

Allows you to filter log messages for calls matching a predicate.

Link copied to clipboard
fun sanitizeHeader(placeholder: String = "***", predicate: (String) -> Boolean)

Allows you to sanitize sensitive headers to avoid their values appearing in the logs. In the example below, Authorization header value will be replaced with '***' when logging: