From 41ec2e581c9590f2e996eab6144a79223c7c348d Mon Sep 17 00:00:00 2001 From: Hyunmin Choi Date: Sat, 28 Dec 2024 16:34:25 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20Logback=20=EB=AA=A8=EB=8B=88?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20=EC=84=A4=EC=A0=95=20(#134)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Loki 의존성 추가 (#133) * feat: Logback 설정 (#133) * test: Logback 모니터링 설정 (#133) * feat: loki url 변경 (#133) * feat: Logback 모니터링 설정 (#133) --- build.gradle | 3 ++ src/main/resources/logback-spring.xml | 41 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 src/main/resources/logback-spring.xml diff --git a/build.gradle b/build.gradle index 54637ae..38c409d 100644 --- a/build.gradle +++ b/build.gradle @@ -45,6 +45,9 @@ dependencies { // Prometheus implementation 'io.micrometer:micrometer-registry-prometheus' + // Loki + implementation 'com.github.loki4j:loki-logback-appender:1.5.2' + // JSON Web Token implementation 'io.jsonwebtoken:jjwt-api:0.12.5' runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5' diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..103defb --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,41 @@ + + + + + + + ${CONSOLE_LOG_PATTERN} + + + + + + http://3.37.189.47:3100/loki/api/v1/push + + + + + + + + + + + + + + + + + + + + + + + + + +