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)

HttpClient logging feature.

Properties

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.