LinuxCommandLibrary

adb-logcat

Dump a log of system messages.

TLDR

Display system logs

$ adb logcat
copy


Display lines that match a regular expression
$ adb logcat -e [regular_expression]
copy


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] *:S
copy


Display logs for React Native applications in [V]erbose mode [S]ilencing other tags
$ adb logcat ReactNative:V ReactNativeJS:V *:S
copy


Display logs for all tags with priority level [W]arning and higher
$ adb logcat *:W
copy


Color the log (usually use with filters)
$ adb logcat -v color
copy

Copied to clipboard