- `logs start` appends to `app.log` and rotates at 5 MB. Override with `AGENT_DEVICE_APP_LOG_MAX_BYTES` and `AGENT_DEVICE_APP_LOG_MAX_FILES`; set `AGENT_DEVICE_APP_LOG_REDACT_PATTERNS` to a comma-separated regex list for write-time redaction. Commas inside a `{m,n}` quantifier, `[...]`, or `(...)` stay in their pattern; write `\,` for any other literal comma. If a pattern does not compile, `logs start` fails with `INVALID_ARGS`, `details.reason: "app_log_redact_pattern_invalid"`, and the zero-based `details.patternIndex` of that comma-separated field (empty fields count); the pattern text is not echoed. On Apple simulators, `logs start` returns once the simulator log stream is running, so lines that the app logs after that are captured. If the stream does not start within 10 s, `logs start` fails with `details.reason: "simulator-log-stream-launch-timeout"`.
0 commit comments