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 + + + + + + + + + + + + + + + + + + + + + + + + + +