{"version":"2.1.228","anchor":"agent-sdk-debug-logs-can-go-through-the-storage-layer","canonical_anchor":"agent-sdk-debug-logs-can-go-through-the-storage-layer","heading":"Agent SDK debug logs can go through the storage layer","tier":"use","area":"Agents","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.228\/e\/agent-sdk-debug-logs-can-go-through-the-storage-layer","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.228","markdown":"### Agent SDK debug logs can go through the storage layer\n\nSDK debug logging tags a session id and can write through the storage layer when given one.\n\n**What**\n\nThe SDK debug logger now mints a session id of the form `sdk-<uuid>` at startup and, when the caller hands it a storage handle, appends through that instead of writing the file directly. With no handle it writes to the same debug file as before. Only runs when `DEBUG_CLAUDE_AGENT_SDK` is set.\n\n**Evidence**\n\n`{ namespace: \"log\", sessionId: Fyi, channel: \"debug\" }`\n\n- Area: Agents\n- Names: `DEBUG_CLAUDE_AGENT_SDK`\n- Tier: Use it now\n- Useful: 2\/5\n- Signal: 2\/5"}