Package io.ktor.client.features.logging

Types

LogLevel

enum class LogLevel

Logging log level.

Logger

interface Logger

HttpClient Logger.

Logging

class Logging

HttpClient logging feature.

MessageLengthLimitingLogger

class MessageLengthLimitingLogger : Logger

A Logger that breaks up log messages into multiple logs no longer than maxLength

Functions

Logging

fun HttpClientConfig<*>.Logging(
    block: Config.() -> Unit = {}
): Unit

Configure and install Logging in HttpClient.

Companion Object Properties

ANDROID

val Logger.Companion.ANDROID: Logger

Android Logger: breaks up long log messages that would be truncated by Android’s max log length of 4068 characters

DEFAULT

expect val Logger.Companion.DEFAULT: Logger

Default logger to use.

EMPTY

val Logger.Companion.EMPTY: Logger

Empty Logger for test purpose.

SIMPLE

val Logger.Companion.SIMPLE: Logger

Logger using println.