HttpResponseLog

data class HttpResponseLog(val request: HttpRequestLog, val statusCode: Int, val headers: Map<String, String?> = emptyMap(), val body: Any? = null, val throwable: Throwable? = null, val timestamp: LocalDateTime = Clock.System.now().toLocalDateTime(TimeZone.UTC))

Constructors

Link copied to clipboard
constructor(request: HttpRequestLog, statusCode: Int, headers: Map<String, String?> = emptyMap(), body: Any? = null, throwable: Throwable? = null, timestamp: LocalDateTime = Clock.System.now().toLocalDateTime(TimeZone.UTC))

Functions

Link copied to clipboard
fun toLogData(loggerName: String, logLevel: LogLevel, context: LogContext = EmptyLogContext, withRequest: Boolean = false): LogData

Properties

Link copied to clipboard
val body: Any? = null
Link copied to clipboard
val duration: Long
Link copied to clipboard
val headers: Map<String, String?>
Link copied to clipboard
Link copied to clipboard
val statusCode: Int
Link copied to clipboard
val throwable: Throwable? = null
Link copied to clipboard
val timestamp: LocalDateTime