Skip to content

Commit

Permalink
feat(resources): prod profile log 구성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jminkkk committed Aug 2, 2024
1 parent 184ddf2 commit 890a951
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">

<timestamp key="DATE_FORMAT"
datePattern="yyyy-MM-dd"/>
<timestamp key="DATE_FORMAT" datePattern="yyyy-MM-dd"/>

<springProfile name="local">
<include resource="logger/logback-spring-local.xml"/>
Expand All @@ -12,4 +11,8 @@
<include resource="logger/logback-spring-dev.xml"/>
</springProfile>

<springProfile name="prod">
<include resource="logger/logback-spring-prod.xml"/>
</springProfile>

</configuration>
11 changes: 11 additions & 0 deletions backend/src/main/resources/logger/logback-spring-prod.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">
<include resource="logger/file/error-appender.xml"/>

<property name="LOG_FILE_PATH" value="./spring-log"/>

<root level="ERROR">
<appender-ref ref="error-appender"/>
</root>

</configuration>

0 comments on commit 890a951

Please sign in to comment.