Skip to content

Commit

Permalink
Merge pull request #91 from TEAM-Encore/chore/#88-log
Browse files Browse the repository at this point in the history
[Chore] 로그 수집을 위한 xml 파일 수정
  • Loading branch information
chanwookK authored Jan 15, 2025
2 parents e786b62 + 9cdee7e commit 0e99001
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,24 @@
</encoder>
</appender>

<!-- 로그 파일에 출력 -->
<!-- 로키에 push -->
<appender name="LOKI" class="io.prometheus.client.logback.LokiAppender">
<url>http://host.docker.internal:20045/loki/api/v1/push</url>
<labels>
<label key="job" value="springboot-application"/>
</labels>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} - %msg%n</pattern>
</encoder>
</appender>
<!-- 로그 파일에 출력
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/home/ita/encore/logs/backend/encore.log</file>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} - %msg%n</pattern>
</encoder>
</appender>

쓰기 권한이 없어 사용 불가-->
<!-- 루트 로거 설정 -->
<root level="INFO">
<appender-ref ref="STDOUT" />
Expand Down

0 comments on commit 0e99001

Please sign in to comment.