Http Request Log
data class HttpRequestLog(val protocol: String, val method: String, val schema: String, val host: String, val port: Int, val path: String, val query: String? = null, 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(protocol: String, method: String, schema: String, host: String, port: Int, path: String, query: String? = null, 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): LogData