Skip to content

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.

NameTypeRequiredDefaultConstraintsDescription
sourcesunknownNo['js_console']Log sources to collect from (default: js_console only)
durationMsunknownNo2000min: 0, max: 10000, integer
limitunknownNo100min: 1, max: 500, integer
filterstringNoSubstring filter applied to log text after collection
logLevelunknownNo'all'Filter by log level (default: all)
collect_logs()