snippetbashTip
adb logcat — Dump a log of system messages. More information: <https://developer.android.com/tools/logcat>.
Viewed 0 times
commandclilogdumpadb logcatmessagesmoresystem
Problem
How to use the
adb logcat command: Dump a log of system messages. More information: <https://developer.android.com/tools/logcat>.Solution
adb logcat — Dump a log of system messages. More information: <https://developer.android.com/tools/logcat>.Display system logs:
adb logcatDisplay lines that match a
reg[e]x:adb logcat -e {{regex}}Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags:
adb logcat {{tag}}:{{mode}} *:SDisplay logs for React Native applications in [V]erbose mode [S]ilencing other tags:
adb logcat ReactNative:V ReactNativeJS:V *:SDisplay logs for all tags with priority level [W]arning and higher:
adb logcat *:WDisplay logs for a specific PID:
adb logcat --pid {{pid}}Display logs for the process of a specific package:
adb logcat --pid $(adb shell pidof -s {{package}})Color the log (usually use with filters):
adb logcat -v colorCode Snippets
Display system logs
adb logcatDisplay lines that match a `reg[e]x`
adb logcat -e {{regex}}Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags
adb logcat {{tag}}:{{mode}} *:SDisplay logs for React Native applications in [V]erbose mode [S]ilencing other tags
adb logcat ReactNative:V ReactNativeJS:V *:SDisplay logs for all tags with priority level [W]arning and higher
adb logcat *:WContext
tldr-pages: common/adb logcat
Revisions (0)
No revisions yet.