2021-08-26 07:39:26 +01:00
|
|
|
# logcat
|
|
|
|
|
2022-10-03 12:59:40 +01:00
|
|
|
> Tampilkan dan simpan log sistem.
|
2021-08-26 07:39:26 +01:00
|
|
|
> Informasi lebih lanjut: <https://developer.android.com/studio/command-line/logcat>.
|
|
|
|
|
2022-10-03 12:59:40 +01:00
|
|
|
- Tampilkan log sistem:
|
2021-08-26 07:39:26 +01:00
|
|
|
|
|
|
|
`logcat`
|
|
|
|
|
2022-10-03 12:59:40 +01:00
|
|
|
- Simpan log sistem di dalam sebuah file:
|
2021-08-26 07:39:26 +01:00
|
|
|
|
|
|
|
`logcat -f {{path/to/file}}`
|
|
|
|
|
2022-10-03 12:59:40 +01:00
|
|
|
- Saring informasi log berdasarkan sintaks ekspresi reguler (regex) tertentu:
|
2021-08-26 07:39:26 +01:00
|
|
|
|
|
|
|
`logcat --regex {{regular_expression}}`
|