Skip to content

Commit

Permalink
chore: logback 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Apr 26, 2024
1 parent 6f0b85b commit c12ea4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<springProfile name="dev, prod">

<appender name="FILE-INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/home/ubuntu/log/info/info-${BY_DATE}.log</file>
<file>/home/ec2-user/log/info/info-${BY_DATE}.log</file>
<filter class = "ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
Expand All @@ -32,15 +32,15 @@
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern> /home/ubuntu/backup/info/info-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern> /home/ec2-user/backup/info/info-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<maxHistory>30</maxHistory>
<totalSizeCap>1GB</totalSizeCap>
</rollingPolicy>
</appender>

<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/home/ubuntu/log/error/error-${BY_DATE}.log</file>
<file>/home/ec2-user/log/error/error-${BY_DATE}.log</file>
<filter class = "ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
Expand All @@ -50,7 +50,7 @@
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern> /home/ubuntu/backup/error/error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern> /home/ec2-user/backup/error/error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<maxHistory>30</maxHistory>
<totalSizeCap>1GB</totalSizeCap>
Expand Down

0 comments on commit c12ea4b

Please sign in to comment.