Package io.ktor.client.features.logging

Types

Link copied to clipboard
interface Logger

HttpClient Logger.

Link copied to clipboard
class Logging(logger: Logger, level: LogLevel, filters: List<(HttpRequestBuilder) -> Boolean>)

HttpClient logging feature.

Link copied to clipboard
enum LogLevel : Enum<LogLevel>

Logging log level.

Link copied to clipboard
class MessageLengthLimitingLogger(maxLength: Int, minLength: Int, delegate: Logger) : Logger

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

Functions

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

Configure and install Logging in HttpClient.

Properties

Link copied to clipboard
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

Link copied to clipboard
expect val Logger.Companion.DEFAULT: Logger

Default logger to use.

actual val Logger.Companion.DEFAULT: Logger
actual val Logger.Companion.DEFAULT: Logger
Link copied to clipboard
val Logger.Companion.EMPTY: Logger

Empty Logger for test purpose.

Link copied to clipboard
val Logger.Companion.SIMPLE: Logger