Skip to content

Commit

Permalink
refactor: 콘솔 로거 프로퍼티 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hgo641 committed Feb 23, 2024
1 parent 011dd7e commit de6b26c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<springProfile name="prod">
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

<timestamp key="DATE" datePattern="yyyy-MM-dd"/>
<timestamp key="DATE_SEC" datePattern="yyyy-MM-dd HH:mm:ss"/>
<timestamp key="DATE" datePattern="yyyy-MM-dd"/>
<timestamp key="DATE_SEC" datePattern="yyyy-MM-dd HH:mm:ss"/>

<include resource="console-appender.xml"/>
<include resource="info-appender.xml"/>
<include resource="warn-appender.xml"/>
<include resource="error-appender.xml"/>
<include resource="console-appender.xml"/>
<include resource="info-appender.xml"/>
<include resource="warn-appender.xml"/>
<include resource="error-appender.xml"/>

<springProfile name="local">
<root level="info">
<appender-ref ref="CONSOLE"/>
</root>
</springProfile>

<springProfile name="prod">
<root level="info">
<appender-ref ref="FILE-INFO"/>
<appender-ref ref="FILE-ERROR"/>
<appender-ref ref="FILE-WARN"/>
Expand Down

0 comments on commit de6b26c

Please sign in to comment.