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