Skip to content

Commit

Permalink
🐛 show on console too not only sending loki
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Aug 2, 2024
1 parent 520686f commit f37f438
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

<springProfile name="local">
<property name="LOKI_URL" value="http://localhost:3100/loki/api/v1/push"/>
</springProfile>

<springProfile name="test">
<property name="LOKI_URL" value="http://localhost:3100/loki/api/v1/push"/>
</springProfile>

<springProfile name="dev">
<property name="LOKI_URL" value="http://loki:3100/loki/api/v1/push"/>
</springProfile>
Expand Down Expand Up @@ -35,7 +35,14 @@
</format>
</appender>

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="LOKI"/>
<appender-ref ref="CONSOLE"/>
</root>
</configuration>

0 comments on commit f37f438

Please sign in to comment.