{"version":"2.1.319","anchor":"ide-content-link-policy-telemetry-and-ccrgateway-additions","canonical_anchor":"ide-content-link-policy-telemetry-and-ccrgateway-additions","heading":"Gateway messages can be logged as JSON with CLAUDE_GATEWAY_LOG_FORMAT","tier":"use","area":"LLM Gateway","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/ide-content-link-policy-telemetry-and-ccrgateway-additions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Gateway messages can be logged as JSON with CLAUDE_GATEWAY_LOG_FORMAT\n\nSetting CLAUDE_GATEWAY_LOG_FORMAT to json turns Claude Code gateway messages into structured error logs\n\n**What**\n\nSetting the environment variable `CLAUDE_GATEWAY_LOG_FORMAT` to `json` makes messages from Claude Code's gateway, the ones starting with `claude gateway:`, come out as structured error logs instead of plain text. An environment variable is a named value you set before starting a program.\n\nSeparately, programs driving Claude Code through the SDK now receive a status update about how content links are shown, which in one case reports that a link was drawn as plain text.\n\n**Why**\n\nGateway operators can feed the gateway's messages into tools that expect JSON logs.\n\n- Area: LLM Gateway\n- Names: `CLAUDE_GATEWAY_LOG_FORMAT`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}