Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 파일 로깅 오류 수정 #87

Merged
merged 5 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/network-api/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
</encoder>
</appender>

<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 작성 완료되기 전의 로그 파일 이름 -->
<file>${user.home}/whozin_log/temp.log</file>
<!-- 시간을 기준으로 파일을 관리함 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 시간과 파일 크기를 기준으로 파일을 관리함 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 하루 단위(%d)로 log를 남기며 최대 용량을 넘어가면 %i로 구별하여 저장 -->
<fileNamePattern>log_%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${user.home}/whozin_log/%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- 한 파일은 최대 10MB -->
<maxFileSize>10MB</maxFileSize>
<!-- 로그 파일들은 30일(%d)까지 유지-->
Expand Down
Loading