tldr/pages.zh/android/logcat.md

17 lines
299 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# logcat
> 转储系统消息日志。
> 更多信息见https://developer.android.com/studio/command-line/logcat>.
- 显示系统日志:
`logcat`
- 将系统日志写入文件:
`logcat -f {{文件路径}}`
- 显示与正则表达式匹配的行:
`logcat --regex {{正则表达式}}`