cap-js / audit-logging

CDS plugin providing integration to the SAP Audit Log service as well as out-of-the-box personal data-related audit logging based on annotations.
https://cap.cloud.sap/docs/guides/data-privacy
Apache License 2.0
4 stars 1 forks source link

default kind for any profile (esp. re `test`)? #41

Closed sjvans closed 11 months ago

sjvans commented 11 months ago

should we specify the following in order to always log to console if not in production (especially regarding tests/ ci)?

"cds": {
  "requires": {
    "audit-log": {
      "kind": "audit-log-to-console"
    },
    "[production]": {
      "audit-log": {
        "kind": "audit-log-to-restv2"
      }
    }
  }
}
sjvans commented 11 months ago

looks like all profiles !== 'production' get the development profile -> no issue (but not really get what you see)

sjvans commented 11 months ago

!== 'production' -> 'development' is standard -> OK