Skip to content

Commit

Permalink
Merge pull request #321 from jminkkk/fix/logger_file_location
Browse files Browse the repository at this point in the history
개발 서버 로그 저장 위치 변경
  • Loading branch information
zeus6768 authored Aug 7, 2024
2 parents 99de462 + dddde60 commit 2da4a90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">

<property name="LOG_FILE_PATH" value="./spring-log"/>
<timestamp key="DATE_FORMAT" datePattern="yyyy-MM-dd"/>

<springProfile name="local">
Expand Down
3 changes: 3 additions & 0 deletions backend/src/main/resources/logger/logback-spring-dev.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">

<property name="LOG_FILE_PATH" value="/home/ubuntu/srv/code-zap/dev/spring-log/"/>

<include resource="logger/file/info-appender.xml"/>
<include resource="logger/file/warn-appender.xml"/>
<include resource="logger/file/error-appender.xml"/>
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/resources/logger/logback-spring-prod.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="5 seconds">
<property name="LOG_FILE_PATH" value="/home/ubuntu/srv/code-zap/prod/spring-log/"/>

<include resource="logger/file/error-appender.xml"/>

<root level="ERROR">
Expand Down

0 comments on commit 2da4a90

Please sign in to comment.