From 55527dfad395e498a7e3c2f454b3ec83075d42fa Mon Sep 17 00:00:00 2001 From: beaniejoy Date: Sat, 15 Apr 2023 21:29:26 +0900 Subject: [PATCH] =?UTF-8?q?[#43]=20modify:=20log=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dongnecafe/infra/logging/HttpLogMessage.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dongne-common/src/main/kotlin/io/beaniejoy/dongnecafe/infra/logging/HttpLogMessage.kt b/dongne-common/src/main/kotlin/io/beaniejoy/dongnecafe/infra/logging/HttpLogMessage.kt index b6c9269..ae8f253 100644 --- a/dongne-common/src/main/kotlin/io/beaniejoy/dongnecafe/infra/logging/HttpLogMessage.kt +++ b/dongne-common/src/main/kotlin/io/beaniejoy/dongnecafe/infra/logging/HttpLogMessage.kt @@ -5,7 +5,6 @@ import org.springframework.http.HttpStatus import org.springframework.web.util.ContentCachingRequestWrapper import org.springframework.web.util.ContentCachingResponseWrapper -// TODO: clientIP에 대해서 고민해보기 data class HttpLogMessage( val httpMethod: String, val requestUri: String, @@ -41,11 +40,11 @@ data class HttpLogMessage( return """ | |[REQUEST] ${this.httpMethod} ${this.requestUri} ${this.httpStatus} (${this.elapsedTime}) - |CLIENT_IP: ${this.clientIp} - |HEADERS: ${this.headers} - |REQUEST_PARAM: ${this.requestParam} - |REQUEST_BODY: ${this.requestBody} - |RESPONSE_BODY: ${this.responseBody} + |>> CLIENT_IP: ${this.clientIp} + |>> HEADERS: ${this.headers} + |>> REQUEST_PARAM: ${this.requestParam} + |>> REQUEST_BODY: ${this.requestBody} + |>> RESPONSE_BODY: ${this.responseBody} """.trimMargin() } } \ No newline at end of file