Package io.ktor.client.plugins.logging

Types

Link copied to clipboard
interface Logger

HttpClient Logger.

Link copied to clipboard
class Logging

A client's plugin that provides the capability to log HTTP calls.

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 = {})

Configures and installs 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
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