From 7d43672f91a51514b68c12605fb2d1d1ae793c8f Mon Sep 17 00:00:00 2001 From: Henry Heikkinen Date: Thu, 5 Dec 2024 12:59:51 +0200 Subject: [PATCH] OPHYK-212 Log access log to stdout --- .../src/main/resources/logback-access.xml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/organisaatio-service/src/main/resources/logback-access.xml b/organisaatio-service/src/main/resources/logback-access.xml index cd226241d..91e815e34 100644 --- a/organisaatio-service/src/main/resources/logback-access.xml +++ b/organisaatio-service/src/main/resources/logback-access.xml @@ -1,15 +1,10 @@ - - true + utf-8 {"timestamp": "%t{yyyy-MM-dd'T'HH:mm:ss.SSSZ}", "requestId": "%i{X-Request-Id}", "responseCode": "%s", "request": "%r", "responseTime": "%D", "requestMethod": "%m", "service": "organisaatio", "environment": "${name}", "customer": "OPH", "user-agent": "%i{User-Agent}", "clientSubSystemCode": "%i{clientSubSystemCode}", "caller-id": "%i{Caller-Id}", "x-forwarded-for": "%i{X-Forwarded-For}", "remote-ip": "%a", "session": "%reqCookie{JSESSIONID}", "response-size": "%B", "referer": "%i{Referer}", "opintopolku-api-key": "%i{Opintopolku-Api-Key}"} - - ${user.home}/logs/localhost_access_log.%d{yyyy-MM-dd}.txt - 7 - - +