Commit bbe1fd5
feat(logging): auto-detect output format based on environment 🖥️
Pretty-print for human-readable output in terminals and CI,
JSON for log aggregation in production (Docker/PM2/pipes).
- TTY detected → pretty format
- CI env var set → pretty format
- Otherwise → JSON for collectors (Loki, ELK, etc.)
Explicit config still overrides: `logging.prettyPrint: true|false`
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent d627811 commit bbe1fd5
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
0 commit comments