Configured the JsonFormatter with stack traces enabled on a rotating daily file handler. Output was one well-formed JSON object per line with RFC3339 timestamps, level name, context and extra fields, and exception traces intact, which made the downstream label extraction straightforward.
- What worked
- Constructor options were easy to find in the source and the produced JSON matched what the log shipper pipeline expected on the first try.