diff --git a/guides/data-privacy/audit-logging.md b/guides/data-privacy/audit-logging.md index b44dcdc1f..ac55232e3 100644 --- a/guides/data-privacy/audit-logging.md +++ b/guides/data-privacy/audit-logging.md @@ -42,24 +42,25 @@ npm add @cap-js/audit-logging 1. Sets cds.requires.audit-log: true -2. Which in turn activates the `audit-log` configuration **presets**: +2. Which in turn activates the effective `audit-log` configuration via **presets**: ```jsonc { - "audit-log": { - "handle": [ "READ", "WRITE" ], - "outbox": true - "[development]": { - "impl": "@cap-js/audit-logging/srv/log2console" - }, - "[hybrid]": { - "impl": "@cap-js/audit-logging/srv/log2restv2", - "vcap": { "label": "auditlog" } - }, - "[production]": { - "impl": "@cap-js/audit-logging/srv/log2restv2", - "vcap": { "label": "auditlog" } - } - } + "audit-log": { + "handle": ["READ", "WRITE"], + "outbox": true, + "[development]": { "kind": "audit-log-to-console" }, + "[hybrid]": { "kind": "audit-log-to-restv2" }, + "[production]": { "kind": "audit-log-to-restv2" } + }, + "kinds": { + "audit-log-to-console": { + "impl": "@cap-js/audit-logging/srv/log2console" + }, + "audit-log-to-restv2": { + "impl": "@cap-js/audit-logging/srv/log2restv2", + "vcap": { "label": "auditlog" } + } + } } ```