Skip to content

Commit

Permalink
Merge pull request #943 from HenningWaack/patch-1
Browse files Browse the repository at this point in the history
Add customField "app" to JSON log messages
  • Loading branch information
jonasvoelcker authored Jun 6, 2024
2 parents 13167e5 + 8c58522 commit ef4683c
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 ef4683c

Please sign in to comment.