enough-vase-33352
05/21/2025, 2:36 AMbrief-egg-61061
05/21/2025, 2:36 AMbrief-egg-61061
05/21/2025, 2:36 AMLOG_LEVEL=trace LOG_FORMAT=json
Example in your configuration file (YAML): yaml log: level: trace format: json leak_sensitive_values: false
With LOG_LEVEL=trace
, traces (including stack traces) will be included for log calls and errors, and when using json
as the format, the stack trace will be grouped into a single JSON message under the "trace" key. This ensures the stack trace is not split across multiple log lines, making it easier to parse and analyze programmatically [Logs and audit trails](https://www.ory.sh/docs/self-hosted/operations/logging). Example log output: json { "audience": "application", "error": { "message": "example error", "trace": "stack trace here" }, "level": "error", "msg": "I am an example error", "service_name": "foo", "service_version": "bar", "time": "2020-05-20T12:13:53+02:00" }
This configuration will give you JSON-formatted logs with stack traces grouped in a single message.enough-vase-33352
05/21/2025, 2:37 AMbrief-egg-61061
05/21/2025, 2:37 AMbrief-egg-61061
05/21/2025, 2:37 AM