All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.client4.logging.LogConfig.scala Maven / Gradle / Ivy

There is a newer version: 4.0.0-M19
Show newest version
package sttp.client4.logging

import sttp.model.HeaderNames
import sttp.model.StatusCode

case class LogConfig(
    beforeCurlInsteadOfShow: Boolean = false,
    logRequestBody: Boolean = false,
    logRequestHeaders: Boolean = true,
    logResponseHeaders: Boolean = true,
    logResponseBody: Boolean = false,
    includeTiming: Boolean = true,
    sensitiveHeaders: Set[String] = HeaderNames.SensitiveHeaders,
    beforeRequestSendLogLevel: LogLevel = LogLevel.Debug,
    responseLogLevel: StatusCode => LogLevel = DefaultLog.defaultResponseLogLevel,
    responseExceptionLogLevel: LogLevel = LogLevel.Error
)

object LogConfig {
  val Default: LogConfig = LogConfig()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy