Skip to content

Commit

Permalink
♻️ profile에 따라 socket appender host name 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
semi-cloud committed Nov 29, 2024
1 parent ecdeca8 commit baf5130
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/dev-api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- feature/254
paths-ignore:
- 'scheduler/**'
- '.github/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dev-batch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- feature/254
paths-ignore:
- 'application/**'
- '.github/**'
Expand Down
10 changes: 9 additions & 1 deletion application/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@

<property name="HASHTAG_LOG_PATH" value="${log.config.hashtag.path}"/>
<property name="HASHTAG_LOG_FILE_NAME" value="${log.config.hashtag.filename}"/>
<property name="HASHTAG_LOG_HOST_NAME" value="${log.config.hashtag.hostname}"/>

<springProfile name="dev">
<property name="HASHTAG_LOG_HOST_NAME" value="${log.config.hashtag.hostname}"/>
</springProfile>

<springProfile name="local">
<property name="HASHTAG_LOG_HOST_NAME" value="${log.config.hashtag.hostname.local}"/>
</springProfile>

<property name="HASHTAG_LOG_PORT" value="${log.config.hashtag.port}"/>

<property name="LOG_PATTERN" value="%-5level %d{yy-MM-dd HH:mm:ss}[%thread] [%logger{0}:%line] - %msg%n"/>
Expand Down
1 change: 1 addition & 0 deletions core/src/main/resources/logback.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ log.config.error.archive.path=./error_logs/archive
log.config.hashtag.path=./logs/archive/hashtag
log.config.hashtag.filename=hashtag_log
log.config.hashtag.hostname=internal.scheduler
log.config.hashtag.hostname.local=localhost
log.config.hashtag.port=8080

0 comments on commit baf5130

Please sign in to comment.