Logging Config
class LoggingConfig
Configuration for HTTP request/response logging.
Obtained via the DeepSeekClientBase.Builder.logging DSL. Logging is opt-in — create a LoggingConfig by calling logging { } on the builder; otherwise nothing is logged.
Example:
val client = DeepSeekClient("token") {
logging {
level = LogLevel.BODY
sanitizeHeader { header -> header == "Cookie" }
}
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Redacts headers whose name satisfies predicate from log output.