Reference
collect_logs
Collect logs from multiple sources in parallel: JS console (Hermes ring buffer snapshot), native iOS (xcrun simctl log stream), native Android (adb logcat). Results merged and sorted by timestamp. Works without CDP when only native sources requested. Use when debugging crashes that span JS and native layers.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
sources | unknown | No | ['js_console'] | Log sources to collect from (default: js_console only) | |
durationMs | unknown | No | 2000 | min: 0, max: 10000, integer | |
limit | unknown | No | 100 | min: 1, max: 500, integer | |
filter | string | No | Substring filter applied to log text after collection | ||
logLevel | unknown | No | 'all' | Filter by log level (default: all) |
collect_logs()