docs(logging): clarify redaction surfaces · openclaw/openclaw@19e41a1
vincentkoc
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,10 +52,11 @@ You can tune console verbosity independently via:
|
52 | 52 | - `logging.consoleLevel` (default `info`) |
53 | 53 | - `logging.consoleStyle` (`pretty` | `compact` | `json`) |
54 | 54 | |
55 | | -## Tool summary redaction |
| 55 | +## Redaction |
56 | 56 | |
57 | | -Verbose tool summaries (e.g. `🛠️ Exec: ...`) can mask sensitive tokens before they hit the |
58 | | -console stream. This is **tools-only** and does not alter file logs. |
| 57 | +OpenClaw can mask sensitive tokens before log output leaves the process. The |
| 58 | +same redaction policy is applied at console and file-log sinks, so matching |
| 59 | +secret values are masked before JSONL lines are written to disk. |
59 | 60 | |
60 | 61 | - `logging.redactSensitive`: `off` | `tools` (default: `tools`) |
61 | 62 | - `logging.redactPatterns`: array of regex strings (overrides defaults) |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -147,9 +147,9 @@ When any subkey is enabled, model and tool spans get bounded, redacted
|
147 | 147 | - **Traces:** `diagnostics.otel.sampleRate` (root-span only, `0.0` drops all, |
148 | 148 | `1.0` keeps all). |
149 | 149 | - **Metrics:** `diagnostics.otel.flushIntervalMs` (minimum `1000`). |
150 | | -- **Logs:** OTLP logs respect `logging.level` (file log level). Console |
151 | | - redaction does **not** apply to OTLP logs. High-volume installs should |
152 | | - prefer OTLP collector sampling/filtering over local sampling. |
| 150 | +- **Logs:** OTLP logs respect `logging.level` (file log level). They use the |
| 151 | +diagnostic log-record redaction path, not console formatting. High-volume |
| 152 | +installs should prefer OTLP collector sampling/filtering over local sampling. |
153 | 153 | |
154 | 154 | ## Exported metrics |
155 | 155 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。