Skip to content

Commit 9fbc0d2

Browse files
[Java] copy 'Log CDS Configuration' into observability (#1839)
copying the section on 'Log CDS Configuration' from March 2025 release note to the page on 'Operating Applications > Observability' for higher visibility. --------- Co-authored-by: René Jeglinsky <rene.jeglinsky@sap.com>
1 parent 9224c1c commit 9fbc0d2

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

java/operating-applications/observability.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,34 @@ Most of the loggers are used on DEBUG level by default as they produce quite som
166166
Spring comes with its own [standard logger groups](https://docs.spring.io/spring-boot/docs/2.1.1.RELEASE/reference/html/boot-features-logging.html#boot-features-custom-log-groups). For instance, `web` is useful to track HTTP requests. However, HTTP access logs gathered by the Cloud Foundry platform router are also available in the application log.
167167
:::
168168

169+
#### Log CDS Configuration
170+
171+
Upon start-up, you can get an overview of the configured CDS properties. Use this feature to:
172+
- list all accepted CDS properties and double-check the running configuration
173+
- check for warnings of usage of deprecated properties
174+
- check for warnings of usage of undocumented properties
175+
176+
Please note that secrets are masked.
177+
178+
Turn it on by setting the log level <Config Java>com.sap.cds.properties = DEBUG</Config>.
179+
180+
181+
::: details Sample output:
182+
183+
```sh
184+
... DEBUG ... com.sap.cds.properties : 'cds.dataSource.autoConfig.enabled': 'false' (default: 'true')
185+
... DEBUG ... com.sap.cds.properties : 'cds.dataSource.embedded': 'true' (default: 'false')
186+
... WARN ... com.sap.cds.properties : 'cds.security.authorization.emptyAttributeValuesAreRestricted': 'false' (default: 'true', deprecated, not documented)
187+
... DEBUG ... com.sap.cds.properties : 'cds.security.mock.users.admin.name': 'admin'
188+
... DEBUG ... com.sap.cds.properties : 'cds.security.mock.users.admin.password': '***' (sensitive)
189+
... DEBUG ... com.sap.cds.properties : 'cds.security.mock.users.admin.roles[0]': 'admin'
190+
... DEBUG ... com.sap.cds.properties : 'cds.security.mock.users.admin.roles[1]': 'cds.Developer'
191+
... DEBUG ... com.sap.cds.properties : 'cds.security.mock.users.admin.attributes.businessPartner[0]': '10401010'
192+
... DEBUG ... com.sap.cds.properties : 'cds.odataV4.endpoint.path': '/api' (default: '/odata/v4')
193+
... DEBUG ... com.sap.cds.properties : 'cds.errors.defaultTranslations.enabled': 'true' (default: 'false')
194+
```
195+
:::
196+
169197
### Logging Service { #logging-service}
170198

171199
The SAP BTP platform offers the [SAP Application Logging service for SAP BTP](https://help.sap.com/docs/r/product/APPLICATION_LOGGING)

0 commit comments

Comments
 (0)