mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
22d2872c33
Backend half of the logging overhaul. Retention: - Keep the last 4 rotated files at 20MB each and stop deleting logs on startup, so a crash's prior-run logs survive a restart. - Apply the persisted log level right after plugin registration instead of at the end of setup. - Bound crash.log with size-based rotation (5MB x 2). Secret redaction on every log path: - Proxy: strip userinfo/query from upstream URLs (keep path for diagnostics), exact-match redact known auth.api_key/access_token, classify request/response bodies instead of logging them, header allowlist. - Redact the Gemini `?key=` in cache-trace endpoints. - Omit MCP custom-field values (headers may carry tokens). - Redact deeplink and model-fetch URLs before logging. Docs: - FAQ points users to the persistent crash.log for support workflows.
CC Switch User Manual / 用户手册 / ユーザーマニュアル
Claude Code / Claude Desktop / Codex / Gemini CLI / OpenCode / OpenClaw / Hermes
Language / 语言 / 言語
| Language | Link |
|---|---|
| 中文 | 简体中文用户手册 |
| English | English User Manual |
| 日本語 | 日本語ユーザーマニュアル |
Version / 版本 / バージョン
- Documentation version: v3.16.0
- Last updated: 2026-05-29
- Compatible with CC Switch v3.16.0+