Skip to content

Commit

Permalink
Update logback-spring.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
xorwns118 authored Aug 29, 2024
1 parent 498d812 commit 0194d5a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- Console 레벨 로깅 -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<!-- DEBUG 레벨 로깅 -->
<appender name="DEBUG_FILE" class="ch.qos.logback.core.FileAppender">
<file>/root/logs/debug.log</file>
Expand Down Expand Up @@ -52,9 +59,10 @@
</appender>

<!-- 로깅 레벨 설정 -->
<root level="INFO">
<root level="CONSOLE">
<appender-ref ref="CONSOLE" />
<appender-ref ref="DEBUG_FILE" />
<appender-ref ref="INFO_FILE" />
<appender-ref ref="ERROR_FILE" />
</root>
</configuration>
</configuration>

0 comments on commit 0194d5a

Please sign in to comment.