[#43] modify: log 형식 수정

This commit is contained in:
beaniejoy
2023-04-15 21:29:26 +09:00
parent 5d516c95b6
commit 55527dfad3

View File

@@ -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()
}
}