This commit is contained in:
2026-05-28 20:44:41 +02:00
parent 4213478c94
commit 946946622e
2 changed files with 47 additions and 12 deletions
+20
View File
@@ -0,0 +1,20 @@
<configuration>
<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
<http>
<url>http://loki:3100/loki/api/v1/push</url>
</http>
<format>
<label>
<pattern>app=backend,host=${HOSTNAME},level=%level</pattern>
</label>
<message>
<pattern>%l %msg</pattern>
</message>
</format>
</appender>
<root level="INFO">
<appender-ref ref="LOKI" />
<appender-ref ref="CONSOLE" />
</root>
</configuration>