Skip to content

Commit

Permalink
chore: 모든 로그를 나타내는 로그 파일 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yujung7768903 committed Nov 2, 2024
1 parent 9441119 commit 1ecd9f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@
<maxHistory>30</maxHistory>
</rollingPolicy>
</appender>
<appender name="ALL-LOG-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${FILE_LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/error/error.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<maxHistory>30</maxHistory>
</rollingPolicy>
</appender>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="TIME-CHECK"/>
Expand Down

0 comments on commit 1ecd9f5

Please sign in to comment.