From 37962d3dcbc709c80ebaf74614b12f53a9f25b4b Mon Sep 17 00:00:00 2001 From: Naccl Date: Fri, 26 Mar 2021 20:14:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/main/resources/application-dev.properties | 3 +- src/main/resources/logback-spring.xml | 29 +++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/logback-spring.xml diff --git a/.gitignore b/.gitignore index 1064884..b77b6cc 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,5 @@ build/ ### VS Code ### .vscode/ +log application-prod.properties \ No newline at end of file diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 3e142cd..0a80ba8 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -16,4 +16,5 @@ mybatis.mapper-locations=classpath:mapper/*.xml mybatis.configuration.map-underscore-to-camel-case=true logging.level.root=info -logging.level.top.naccl.dwz=debug \ No newline at end of file +logging.level.top.naccl.dwz=debug +logging.file.name=./log/dwz \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..14b2b55 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + ${FILE_LOG_PATTERN} + + + + + ${LOG_FILE}-%d{yyyy-MM-dd}-%i.log + 365 + + + 10MB + + + + + + + + + \ No newline at end of file