mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 23:35:25 +02:00
adb-logcat: add page (#8424)
This commit is contained in:
parent
ec300f80fa
commit
a158032e7e
1 changed files with 28 additions and 0 deletions
28
pages/common/adb-logcat.md
Normal file
28
pages/common/adb-logcat.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# adb-logcat
|
||||
|
||||
> Dump a log of system messages.
|
||||
> More information: <https://developer.android.com/studio/command-line/logcat>.
|
||||
|
||||
- Display system logs:
|
||||
|
||||
`adb logcat`
|
||||
|
||||
- Display lines that match a regular expression:
|
||||
|
||||
`adb logcat -e {{regular_expression}}`
|
||||
|
||||
- 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`
|
||||
|
||||
- Display logs for React Native applications in [V]erbose mode [S]ilencing other tags:
|
||||
|
||||
`adb logcat ReactNative:V ReactNativeJS:V *:S`
|
||||
|
||||
- Display logs for all tags with priority level [W]arning and higher:
|
||||
|
||||
`adb logcat *:W`
|
||||
|
||||
- Color the log (usually use with filters):
|
||||
|
||||
`adb logcat -v color`
|
Loading…
Add table
Reference in a new issue