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..15a80e38 --- /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} + + + + + + + + + +