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