diff --git a/.gitignore b/.gitignore index 7085901..f616e9f 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,7 @@ out/ .vscode/ ### application.yml ### -application*.yml \ No newline at end of file +application*.yml + +### log file ### +log \ No newline at end of file diff --git a/build.gradle b/build.gradle index cdd91b7..e2ce838 100644 --- a/build.gradle +++ b/build.gradle @@ -45,4 +45,10 @@ sourceSets { srcDirs "src/main/resources", "./submodule" } } +} + +tasks { + processResources { + duplicatesStrategy = DuplicatesStrategy.INCLUDE + } } \ 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..e33995a --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + ${CONSOLE_LOG_PATTERN} + + + + + + ${FILE_LOG_PATTERN} + + + ${FILE_PATH}/%d{yyyy-MM-dd}.%i.log + 1GB + 30 + + + + + + ERROR + ACCEPT + DENY + + + ${FILE_PATH}/error-%d{yyyy-MM-dd}.%i.log + + 1GB + + 30 + + + ${FILE_LOG_PATTERN} + + + + + + + + + \ No newline at end of file