Skip to content

Commit

Permalink
Make default logback profile engage if the json-logs profile was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan committed Jun 20, 2024
1 parent c6bc5c9 commit 438c822
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ GS_USER="1000:1000"
GEOSERVER_BASE_PATH=/geoserver/cloud

# logging profile, either "default" or "json-logs"
LOGGING_PROFILE=json-logs

#LOGGING_PROFILE=json-logs
LOGGING_PROFILE=default
GEOSERVER_DEFAULT_PROFILES="${LOGGING_PROFILE},acl"

GATEWAY_DEFAULT_PROFILES=${LOGGING_PROFILE}
DISCOVERY_SERVER_DEFAULT_PROFILES=${LOGGING_PROFILE}

Expand Down
2 changes: 1 addition & 1 deletion config
Submodule config updated 1 files
+5 −1 logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<configuration>

<springProfile name="default">
<springProfile name="!(json-logs)">
<!--
default logging profile, if you add more profiles besides json-logs (e.g. "custom"),
change name to name="!(json-logs|custom)"
-->
<include resource="org/springframework/boot/logging/logback/base.xml" />
</springProfile>

Expand Down

0 comments on commit 438c822

Please sign in to comment.