Skip to content

Commit

Permalink
Add customField "app" to JSON log messages
Browse files Browse the repository at this point in the history
Add the customField "app" with value "keycloak-config-cli" to each JSON log message. Fixes adorsys#942
  • Loading branch information
HenningWaack authored Nov 7, 2023
1 parent cc36192 commit 5199fe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

<springProfile name="json-log">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
<customFields>{"app":"keycloak-config-cli"}</customFields>
</encoder>
</appender>
</springProfile>

Expand Down

0 comments on commit 5199fe9

Please sign in to comment.