Skip to content

Commit

Permalink
add tag via cf update-user-provided-service (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvans authored Dec 11, 2024
1 parent 7028abf commit 3b4c5f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions node.js/cds-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,14 @@ For SAP Cloud Logging, the JSON formatter uses the following default configurati
```
In order for the JSON formatter to detect the binding to SAP Cloud Logging via user-provided service, the user-provided service must have a tag `cloud-logging`.
(For existing user-provided services, tags can be added via [`cf update-user-provided-service`](https://cli.cloudfoundry.org/en-US/v7/update-user-provided-service.html).)
The key-value pairs can either be part of the first argument or an exclusive object thereafter:
```js
LOG.info({ message: 'foo', reason: 'bar' })
LOG.info('foo', { reason: 'bar' })
```
As always, both defaults are overridable via [cds.env](cds-env#cds-env).
Expand Down

0 comments on commit 3b4c5f5

Please sign in to comment.