Skip to content

Commit

Permalink
[#140] refactor: spring logback encoder 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JuHyun419 committed Jul 2, 2022
1 parent 5e22f8d commit 4834664
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
</springProfile>

<springProfile name="dev">
<file>${LOG_FILE_DEV}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_DIR_SERVER}/%d{yyyy-MM}/log.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<fileNamePattern>./log/%d{yyyy-MM}/log.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<maxFileSize>50MB</maxFileSize>
<maxHistory>180</maxHistory>
</rollingPolicy>
Expand All @@ -44,6 +43,9 @@
</rollingPolicy>
</springProfile>

<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>

<!-- Logging level - TRACE > DEBUG > INFO > WARN > ERROR > FATAL -->
Expand Down

0 comments on commit 4834664

Please sign in to comment.