diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index 6a8bd77af..2ae503547 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -42,17 +42,6 @@ management: exposure: include: health, metrics, logfile -logging: - level: - root: debug - org.springframework.web: debug - server.haengdong: debug - - file: - name: logs/spring-boot-application.log - path: logs - config: classpath:logback-spring.xml - server: servlet: encoding: @@ -75,4 +64,3 @@ spring: import: classpath:config/application-dev.yml activate: on-profile: dev - diff --git a/server/src/main/resources/config b/server/src/main/resources/config index 13959710c..141eb40e8 160000 --- a/server/src/main/resources/config +++ b/server/src/main/resources/config @@ -1 +1 @@ -Subproject commit 13959710cc6d19309aafbc87681d25b9060d935d +Subproject commit 141eb40e871cc9c3e172af46db29d90ac6448180 diff --git a/server/src/main/resources/logback-spring.xml b/server/src/main/resources/logback-spring.xml index 7fa3da153..12e5940d4 100644 --- a/server/src/main/resources/logback-spring.xml +++ b/server/src/main/resources/logback-spring.xml @@ -1,8 +1,71 @@ - - logs/spring-boot-application.log + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + ERROR + ACCEPT + DENY + + logs/spring-boot-application-error.log + + logs/spring-boot-application-error.%d{yyyy-MM-dd}.log + 30 + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + WARN + ACCEPT + DENY + + logs/spring-boot-application-warn.log + + logs/spring-boot-application-warn.%d{yyyy-MM-dd}.log + 30 + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + INFO + ACCEPT + DENY + + logs/spring-boot-application-info.log + + logs/spring-boot-application-info.%d{yyyy-MM-dd}.log + 30 + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + DEBUG + ACCEPT + DENY + + logs/spring-boot-application-debug.log - logs/spring-boot-application.%d{yyyy-MM-dd}.log + logs/spring-boot-application-debug.%d{yyyy-MM-dd}.log 30 @@ -11,10 +74,19 @@ - - - + + + + + - - + + + + + + + + +