Skip to content

Commit

Permalink
Merge pull request #141 from YAPP-19th/feature/#140-리팩터링
Browse files Browse the repository at this point in the history
[#140] log 경로 수정(테스트)
  • Loading branch information
JuHyun419 authored Jun 18, 2022
2 parents bee3e01 + a31fe66 commit aceeb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 변수 설정 -->
<property name="LOG_DIR" value="./logs"/>
<property name="LOG_DIR" value="/home/ec2-user/logs"/>
<property name="LOG_FILE" value="${LOG_DIR}/logfile.log"/>

<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
Expand All @@ -14,7 +14,7 @@
<file>./log/debug.log</file>
<!-- 사이즈 & 일자별로 로그 파일 적용 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>./log/%d{yyyy-MM}/log.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>/home/ec2-user/logs/%d{yyyy-MM}/log.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>10MB</maxFileSize>
<maxHistory>90</maxHistory>
</rollingPolicy>
Expand Down

0 comments on commit aceeb61

Please sign in to comment.