Skip to content

Commit

Permalink
adb-logcat, logcat: add --pid examples (tldr-pages#9893)
Browse files Browse the repository at this point in the history
  • Loading branch information
navarroaxel authored Apr 1, 2023
1 parent d9f6feb commit 6d54553
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages.es/android/logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@

`logcat -f {{ruta/al/archivo}}`

- Muestra líneas que coincidan con una expresión regular:
- Muestra registros que coincidan con una expresión regular:

`logcat --regex {{expresión_regular}}`

- Muestra registros de un proceso específico:

`logcat --pid={{pid}}`

- Muestra registros del proceso de un paquete específico:

`logcat --pid=$(pidof -s {{paquete}})`
8 changes: 8 additions & 0 deletions pages.es/common/adb-logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@

`adb logcat *:W`

- Muestra los registros de un proceso específico:

`adb logcat --pid={{pid}}`

- Muestra los registros del proceso de un paquete específico:

`adb logcat --pid=$(adb shell pidof -s {{paquete}})`

- Colorea el registro (normalmente se utiliza con filtros):

`adb logcat -v color`
8 changes: 8 additions & 0 deletions pages/android/logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@
- Display lines that match a regular expression:

`logcat --regex {{regular_expression}}`

- Display logs for a specific PID:

`logcat --pid={{pid}}`

- Display logs for the process of a specific package:

`logcat --pid=$(pidof -s {{package}})`
8 changes: 8 additions & 0 deletions pages/common/adb-logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@

`adb logcat *:W`

- Display 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 color`

0 comments on commit 6d54553

Please sign in to comment.