From 13da7e80f6e97a7b12c47dd214e1295c4d95eaef Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sun, 29 Mar 2020 06:17:41 +0800 Subject: [PATCH] update rm --- .../xxl-job-executor-sample-spring/pom.xml | 13 +++++++-- .../src/main/resources/logback.xml | 29 +++++++++++++++++++ .../src/main/webapp/WEB-INF/web.xml | 10 +++++-- 3 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/logback.xml diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-spring/pom.xml b/xxl-job-executor-samples/xxl-job-executor-sample-spring/pom.xml index 1e13ed7a..8427e870 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-spring/pom.xml +++ b/xxl-job-executor-samples/xxl-job-executor-sample-spring/pom.xml @@ -21,12 +21,19 @@ ${spring.version} - + + + + org.logback-extensions + logback-ext-spring + 0.1.4 + org.slf4j - slf4j-log4j12 - ${slf4j-api.version} + jcl-over-slf4j + 1.7.25 + diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/logback.xml b/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/logback.xml new file mode 100644 index 00000000..d5a0d2ca --- /dev/null +++ b/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/logback.xml @@ -0,0 +1,29 @@ + + + + logback + + + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n + + + + + ${log.path} + + ${log.path}.%d{yyyy-MM-dd}.zip + + + %date %level [%thread] %logger{36} [%file : %line] %msg%n + + + + + + + + + + \ No newline at end of file diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/webapp/WEB-INF/web.xml b/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/webapp/WEB-INF/web.xml index 9179af7b..c32feb32 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/webapp/WEB-INF/web.xml +++ b/xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/webapp/WEB-INF/web.xml @@ -16,14 +16,20 @@ classpath*:applicationcontext-*.xml + + + logbackConfigLocation + classpath:logback.xml + + - org.springframework.web.util.Log4jConfigListener + ch.qos.logback.ext.spring.web.LogbackConfigListener + org.springframework.web.context.ContextLoaderListener - index.html