logcat
Dump recent Android log lines to diagnose native app crashes: filter by time, priority, tags, or a substring to find root causes like 'Caused by:' errors.
Instructions
Dump recent native log lines — the last N (default 400) or, with since="2m"/"90s", everything from that long ago on the device clock (the right axis when the report is 'I just hit an error'; on a chatty emulator 400 lines can span seconds). Optionally filtered by a case-insensitive substring, a minimum priority (V/D/I/W/E/F — e.g. priority="E" for errors and up), and/or tags (OR'd). This is how you find the REAL reason a native call failed when the UI only shows a generic 'X failed' alert: filter by your app tag or 'Exception'/'Caused by' and read the 'Caused by:' line — that is the root cause. Dumps and exits (does not stream); chatty spam is stripped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Keep only lines whose log tag contains one of these (case-insensitive, OR'd), e.g. ["SessionStore","AuthModule"]. Omit for no tag filtering. | |
| lines | No | Number of recent lines to dump. Default 400. Ignored when since is given. | |
| since | No | Time window instead of a line count: only lines from the last e.g. "2m", "90s", "1h30m" (device clock). The right axis when the report is "I just hit an error" — on a chatty emulator 400 lines can span under ten seconds. | |
| filter | No | Case-insensitive substring to keep (e.g. an app tag or "Exception"). | |
| redact | No | Mask common secrets (token, password, authorization, api key, secret) before returning log lines. Recommended for payment/auth SDKs and debug builds. | |
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| priority | No | Minimum priority to keep: V, D, I, W, E, or F (matches adb's own "*:E"-style filter — E keeps Error and Fatal). Omit for no priority filtering. |