Get app errors (curated)
devilge_get_app_errorsGet error-level logs from a running Android app by package name, with stack traces and optional real-time capture, to identify and fix crashes.
Instructions
Returns recent error-level logs for a specific Android app, filtered by its package name (resolved to PID via adb shell pidof). Multi-line stack traces are coalesced into a single entry with message + stackTrace[]. Default minLevel is "E"; default exclusions filter common Android system noise (Choreographer, OpenGLRenderer, etc.). Returns empty if the app is not running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| followMs | No | When set, listens to logcat in real time for this many milliseconds (1000–300000) and returns everything that arrived during the window. Use this to capture errors as they happen: open the app on the device, call this tool with e.g. followMs=30000, then reproduce the bug — the response will arrive after the window closes. Throws if the app is not running when the call starts. | |
| minLevel | No | Minimum log level. Defaults to "E" (errors and fatals only). | |
| maxEntries | No | Max grouped entries to return. Default 50. | |
| excludeTags | No | Additional tags to silence on top of the built-in noise filter (Choreographer, OpenGLRenderer, ...). | |
| packageName | Yes | Application package name, e.g. "com.example.app". Used to scope logs to this app's PID. |