Start log capture
start_log_captureBegins capturing Android logcat to a file in the background, filtering by app or tag, and returns a session ID for later stopping.
Instructions
Start capturing logcat to a file in the background. Filter by app (via its pid) and/or tag. Returns a sessionId for stop_log_capture. The app must be running to filter by appId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only capture this log tag (logcat '<tag>:V *:S') | |
| appId | No | Only capture logs of this app (defaults to session appId; must be running) | |
| clear | No | Clear the log buffer first (default true) | |
| serial | No | Device serial (defaults to session or the only device) |