Files
tldr/pages.fa/android/logcat.md

25 lines
736 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# logcat
> تخلیه یک لاگ از پیاهم های سیستمی، شامل پشته رهگیری زمان وقوع خطا، و اطلاعات پیام های لاگ شده توسط برنامه ها.
> اطلاعات بیشتر: <https://developer.android.com/tools/logcat>.
- نمایش لاگ سیستمی :
`logcat`
- نوشتن لاگ سیستمی به یک فایل :
`logcat -f {{path/to/file}}`
- نمایش خطاهای منطبق با الگوی ورودی :
`logcat --regex {{regular_expression}}`
- نمایش لاگ های مربوط به یک PID مشخص :
`logcat --pid {{pid}}`
- نمایش لاگ های پروسه های مربوط به یک بسته مشخص :
`logcat --pid $(pidof -s {{package}})`