Logcat Guide

February 6, 2026 ยท View on GitHub

Purpose

Explain logcat panel layout, controls, filter behavior, and expected runtime behavior.

Default Behavior

:AndroidBuild opens logcat automatically after a successful Android deploy and updates package selection to the deployed app.

Entry Points

Entry PointDefault ShortcutNotes
:AndroidLogcatNoneOpens logcat directly
AndroidMenu Logcat -> Logcat<leader>am then menuSame logcat action from hub
Successful :AndroidBuild<leader>abOpens logcat after deploy

Dock Layout

Logcat uses a two-layer bottom dock:

  • Control strip (fixed): package, filter, level rows
  • Stream body: log output

<CR> behavior:

  • On control strip rows: edit package, filter, or level.
  • In stream body: open stack trace navigation when available.

Controls

KeyAction
qClose logcat panel
cClear panel output
CClear output and reset pause state
pPause or resume output
rRestart logcat
gpPick package filter
gfEdit filter text
glPick level filter
gsSwitch run config

Filter Rules

  • Space-separated terms: every term must match the line.
  • Regex pattern: wrap in /.../.

Examples:

  • network timeout
  • /Retrofit|OkHttp/

Runtime Behavior

  • Logcat reconnect is automatic with retry backoff.
  • Status lines report retry/disconnect state.
  • Pause keeps incoming lines in backlog and flushes on resume.
  1. Open logcat with :AndroidLogcat.
  2. Set package and level from the control strip.
  3. Add a text or regex filter to reduce noise.
  4. Pause while inspecting long output, then resume to flush backlog.
  5. Press <CR> on stack-trace lines to jump to source.