Skip to content

Commit

Permalink
Merge pull request #183 from Make-A-Wish-Sopt/feature/jiyoung_#181-de…
Browse files Browse the repository at this point in the history
…velop

[ADD] 로그 수정
  • Loading branch information
wlwpfh authored Sep 12, 2024
2 parents 8ef293c + 3ca6cd7 commit 54f49b8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,34 @@
</encoder>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/logs/application.log</file>
<encoder>
<pattern>[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5level] [%thread] %logger %msg%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>/logs/makeawish-server-%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>2</maxHistory>
<totalSizeCap>10MB</totalSizeCap>
</rollingPolicy>
</appender>

<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>error</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<file>/logs/err_application.log</file>
<encoder>
<pattern>[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%-5level] [%thread] %logger %msg%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>/logs/makeawish-server-error-%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>2</maxHistory>
<totalSizeCap>10MB</totalSizeCap>
</rollingPolicy>
</appender>

<logger name="jdbc" level="OFF" additive="false">
<appender-ref ref="STDOUT"/>
Expand Down

0 comments on commit 54f49b8

Please sign in to comment.