Audit logging

You can set up audit logging by setting an extra parameter in your docker-compose.yml file:

x-api: &api_common
  image: netpicker/api
  environment:
    ENABLE_AUDIT_LOGGING: 1

This logs user actions in the API including username/email, and POST body content:

2024-12-03 10:38:03,450 [-] [AUDIT] app.api:187: Subject: 226252336528990208 ([email protected]) - "GET /api/v1/status/logs"