From d01690dffb927831e97fc709982f0dc32359b264 Mon Sep 17 00:00:00 2001 From: maxf <1107047387@qq.com> Date: Sat, 27 Oct 2018 16:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/logback-spring.xml | 128 ++++++++++-------- .../src/test/resources/application.properties | 2 + 2 files changed, 71 insertions(+), 59 deletions(-) diff --git a/yexuejc-springboot-base/src/main/resources/logback-spring.xml b/yexuejc-springboot-base/src/main/resources/logback-spring.xml index 54e679b..e730516 100644 --- a/yexuejc-springboot-base/src/main/resources/logback-spring.xml +++ b/yexuejc-springboot-base/src/main/resources/logback-spring.xml @@ -1,63 +1,73 @@ - - + + + + + + + - - - - ${context.name} - - ${log.path}/access.log - - ${log.path}/access.${roll.file.suffix} - - - - ${log.pattern} - - - - ${log.path}/biz.log - - ${log.path}/biz.${roll.file.suffix} - - - - ${log.pattern} - - - - ${log.path}/exception.log - - ${log.path}/exception.${roll.file.suffix} - - - - ${log.pattern} - - - - - - - - - - - - - - - - ${log.pattern} - - - - - + + + ${context.name} + + ${log.path}/access.log + + ${log.path}/access.${roll.file.suffix} + + + + ${log.pattern} + + + + ${log.path}/biz.log + + ${log.path}/biz.${roll.file.suffix} + + + + ${log.pattern} + + + + ${log.path}/exception.log + + ${log.path}/exception.${roll.file.suffix} + + + + ${log.pattern} + + + + + + + + + + + + + + + + + + + ${log.pattern} + + + + + diff --git a/yexuejc-springboot-base/src/test/resources/application.properties b/yexuejc-springboot-base/src/test/resources/application.properties index fba6a7e..aa5b54b 100644 --- a/yexuejc-springboot-base/src/test/resources/application.properties +++ b/yexuejc-springboot-base/src/test/resources/application.properties @@ -1,5 +1,7 @@ server.port=8888 +spring.application.name=@pom.artifactId@ + logging.level.root=info logging.path=/logs/yexuejc-springboot-parent