{"version":"2.1.319","anchor":"gateway-logs-emit-json-when-a-mode-check-passes","canonical_anchor":"gateway-logs-emit-json-when-a-mode-check-passes","heading":"Gateway logs can be written as JSON","tier":"notice","area":"LLM Gateway","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/gateway-logs-emit-json-when-a-mode-check-passes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Gateway logs can be written as JSON\n\nClaude Code's gateway logging can now write each line as JSON with a severity, a time and a message, instead of plain text\n\n**Unclear.** What switches the logs to JSON is not stated.\n\n**What**\n\nWhen a certain condition is met, Claude Code's gateway logging now writes each line as JSON, a structured format, holding a severity, a time and the message. Otherwise it writes the plain text lines that start with `[gateway]`.\n\n**Why**\n\nJSON lines are easier for cloud logging services to read and sort.\n\n- Area: LLM Gateway\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}