Logging

class Logging

HttpClient logging feature.

Types

Companion

companion object Companion : 
    HttpClientFeature<Config, Logging>

Config

class Config

Logging feature configuration

Constructors

<init>

Logging(logger: Logger, level: LogLevel)
Logging(
    logger: Logger,
    level: LogLevel,
    filters: List<(HttpRequestBuilder) -> Boolean> = emptyList())

HttpClient logging feature.

Properties

filters

var filters: List<(HttpRequestBuilder) -> Boolean>

level

var level: LogLevel

logger

val logger: Logger

Companion Object Properties

key

The AttributeKey for this feature.

Companion Object Functions

install

fun install(feature: Logging, scope: HttpClient): Unit

Installs the feature class for a HttpClient defined at scope.

prepare

fun prepare(block: Config.() -> Unit): Logging

Builds a TFeature by calling the block with a TConfig config instance as receiver.