Skip to content

Commit

Permalink
Merge pull request #277 from Juinjang/feat/#270
Browse files Browse the repository at this point in the history
[refactor/#270] 로그파일 수정
  • Loading branch information
PicturePark1101 authored Jan 17, 2025
2 parents 516b7f2 + 5adf5da commit ce11957
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/logback-appender.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<onMismatch>DENY</onMismatch>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/warn-console/${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt</fileNamePattern>
<fileNamePattern>${LOG_PATH}/console/warn-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt</fileNamePattern>
<maxFileSize>20MB</maxFileSize>
<maxHistory>7</maxHistory>
<totalSizeCap>100MB</totalSizeCap>
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/logback-dev.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<configuration>
<include resource="logback-appender.xml"/>

<property name="LOG_PATH" value="${user.정}/logs" />
<property name="SERVER_INFO" value="dev" />

<root level="INFO">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="CONSOLE_INFO_FILE"/>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/logback-local.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<include resource="logback-appender.xml"/>

<property name="LOG_PATH" value="~/info-local" />
<property name="LOG_PATH" value="${user.home}/logs" />
<property name="SERVER_INFO" value="local" />

<root level="INFO">
Expand All @@ -14,7 +14,7 @@

<!-- 추후 필터 구현 후 연결 예정-->
<!-- <logger name="Filter" level="INFO" additivity="false">-->
<!-- <appender-ref ref="API_CONSOLE"/>-->
<!-- <appender-ref ref="API_CONSOLE"/>-->
<!-- <appender-ref ref="API_FILE"/>-->
<!-- </logger>-->

Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/logback-prod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<configuration>
<include resource="logback-appender.xml"/>

<property name="LOG_PATH" value="${user.home}/logs" />
<property name="SERVER_INFO" value="prod" />

<root level="INFO">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="CONSOLE_INFO_FILE"/>
Expand Down

0 comments on commit ce11957

Please sign in to comment.