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