diff --git a/build.gradle b/build.gradle index efbb9cc..928b7c1 100644 --- a/build.gradle +++ b/build.gradle @@ -62,12 +62,16 @@ dependencies { // actuator implementation 'org.springframework.boot:spring-boot-starter-actuator' - //prometheus runtimeOnly "io.micrometer:micrometer-registry-prometheus" + //loki4j + implementation 'com.github.loki4j:loki-logback-appender:1.5.1' +// implementation 'com.github.loki4j:loki-protobuf:0.0.2_pb4.31.0' +// implementation 'org.apache.httpcomponents:httpclient:4.5.14' } + tasks.named('test') { useJUnitPlatform() } \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..c0946dc --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,27 @@ + + + + + + + + + ${LOKI_URL} + + + + + + {"level":"%level","msg":"%msg"} + + + + + + + + + + \ No newline at end of file