Skip to content

Commit

Permalink
[BE] fix: log 안찍히는 오류 수정 (#373)
Browse files Browse the repository at this point in the history
* feat: logback 환경에 따라 분리

* feat: logback 변수 분리

* feat: http request, response 로그 설정

* fix: http request, response 로그 추가 삭제

* refactor: 개발 서버는 WARN 경고시 슬랙 알람 발생 수정

* refactor: test 일때는 trace 로그 삭제

* fix: log file path 수정
  • Loading branch information
wugawuga authored Aug 9, 2023
1 parent 6641e42 commit 3504b75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
profiles:
active: { DEPLOY_ACTIVE:dev }
active: local
servlet:
multipart:
enabled: true
Expand All @@ -14,3 +14,7 @@ springdoc:
kakao:
rest-api-key: { REST_API_KEY }
redirect-uri: { REDIRECT_URI }

logging:
file:
path: { LOG_DIR }
1 change: 1 addition & 0 deletions backend/src/main/resources/logback-spring-dev.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<included>

<property resource="logback-variables.yml"/>
<springProperty name="LOG_DIR" source="logging.file.path"/>

<springProperty name="SLACK_WEBHOOK_URI" source="logging.slack.webhook-uri"/>
<appender name="SLACK" class="com.github.maricn.logback.SlackAppender">
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/logback-spring-prod.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<included>

<property resource="logback-variables.yml"/>
<springProperty name="LOG_DIR" source="logging.file.path"/>

<springProperty name="SLACK_WEBHOOK_URI" source="logging.slack.webhook-uri"/>
<appender name="SLACK" class="com.github.maricn.logback.SlackAppender">
Expand Down
1 change: 0 additions & 1 deletion backend/src/main/resources/logback-variables.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
LOG_DIR: { LOG_DIR }
LOG_PATTERN: { LOG_PATTERN }
DEV_SLACK_WEBHOOK_URI: { DEV_SLACK_WEBHOOK_URI }
DEV_FILE_SIZE: { DEV_FILE_SIZE }
Expand Down

0 comments on commit 3504b75

Please sign in to comment.