From 6b90272e4dd743ec0a29c64350a372fbe81cdb1d Mon Sep 17 00:00:00 2001 From: Invidam Date: Tue, 5 Mar 2024 17:40:47 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B9=85=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=EC=9C=84=ED=95=9C=20=EC=84=A4=EC=A0=95=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 33 ++++++++++++++++++++++++++++++++- src/main/resources/logback.xml | 6 ++++++ src/main/webapp/WEB-INF/web.xml | 18 ++++++++++++++++++ tomcat/conf/logback-access.xml | 29 +++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/logback.xml create mode 100644 tomcat/conf/logback-access.xml diff --git a/pom.xml b/pom.xml index df5201f3..d8359fea 100644 --- a/pom.xml +++ b/pom.xml @@ -287,10 +287,41 @@ 1.9.4 + + org.slf4j + slf4j-api + 2.0.7 + + org.slf4j slf4j-simple - 1.7.25 + 2.0.7 + + + org.slf4j + slf4j-log4j12 + 2.0.7 + + + org.slf4j + jcl-over-slf4j + 2.0.7 + + + ch.qos.logback + logback-core + 1.3.11 + + + ch.qos.logback + logback-access + 1.3.11 + + + ch.qos.logback + logback-classic + 1.3.11 diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 00000000..e8bd3213 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index c1cb551f..783b27ea 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -15,7 +15,25 @@ classpath*:common/*.xml + + TeeFilter + ch.qos.logback.access.servlet.TeeFilter + + excludes + swagger-ui.html + + + + + TeeFilter + /* + + + TeeFilter + /swagger-ui.html + REQUEST + org.springframework.web.context.ContextLoaderListener diff --git a/tomcat/conf/logback-access.xml b/tomcat/conf/logback-access.xml new file mode 100644 index 00000000..ceee7eea --- /dev/null +++ b/tomcat/conf/logback-access.xml @@ -0,0 +1,29 @@ + + + + + + + ${LOG_PATH_NAME}/access.log + + ${LOG_PATH_NAME}/access.%d{yyyy-MM-dd}.log + 30 + + + ${HTTP_PATTERN} + + + + + + ${HTTP_PATTERN} + + + + + + + + + + From f7c67057b7ba6bc06d1b2b4dd45f42b1b031c10c Mon Sep 17 00:00:00 2001 From: Invidam Date: Tue, 5 Mar 2024 17:43:22 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EC=A4=84=20=EA=B5=AC=EB=B6=84=20?= =?UTF-8?q?=EB=AC=B8=EC=9E=90=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tomcat/conf/logback-access.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat/conf/logback-access.xml b/tomcat/conf/logback-access.xml index ceee7eea..15a80e38 100644 --- a/tomcat/conf/logback-access.xml +++ b/tomcat/conf/logback-access.xml @@ -1,6 +1,6 @@ - +