Skip to content

Commit

Permalink
Merge pull request #2351 from amvanbaren/configure-tracing-9
Browse files Browse the repository at this point in the history
Enable loki4j verbose mode
  • Loading branch information
amvanbaren committed Feb 14, 2024
2 parents df1d364 + 04ad4f8 commit 57765e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logging/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<springProperty scope="context" name="appName" source="spring.application.name"/>

<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
<verbose>true</verbose>
<http>
<url>${LOKI_URL}</url>
<auth>
Expand All @@ -13,7 +14,7 @@
</http>
<format>
<label>
<pattern>job=openvsx-logs,instance=${POD_NAME},application=${appName},traceID=%X{traceId:-NONE},level=%level</pattern>
<pattern>job=loki4j,instance=${HOSTNAME},application=${appName},traceID=%X{traceId:-NONE},level=%level</pattern>
</label>
<message>
<pattern>${FILE_LOG_PATTERN}</pattern>
Expand Down

0 comments on commit 57765e3

Please sign in to comment.