LogMode

sealed class LogMode

LogMode represents the logging mode of SDK clients. The mode is backed by a bit-field where each bit is a flag (mode) that describes the logging behavior for one or more client components.

Example: Setting log mode to enable logging of requests and responses

val mode = LogMode.LogRequest + LogMode.LogResponse

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Default : LogMode

The default logging mode which does not opt-in to anything

Link copied to clipboard

Log the request details, e.g. url, headers, etc.

Link copied to clipboard

Log the request details as well as the body if possible

Link copied to clipboard

Log the response details, e.g. status, headers, etc

Link copied to clipboard

Log the response details as well as the body if possible

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Test if a particular LogMode is enabled

Link copied to clipboard
operator fun minus(mode: LogMode): LogMode
Link copied to clipboard
operator fun plus(mode: LogMode): LogMode
Link copied to clipboard
open override fun toString(): String