logcat: update Chinese translation (#14134)

This commit is contained in:
Yi Liu
2024-10-13 06:08:58 +08:00
committed by GitHub
parent 780cf44a18
commit e7810c94b5

View File

@@ -1,16 +1,24 @@
# logcat
> 转储系统消息日志。
> 转储系统消息日志,包括发生错误时的堆栈跟踪信息,以及应用程序记录的信息消息
> 更多信息:<https://developer.android.com/tools/logcat>.
- 显示系统日志:
`logcat`
- 将系统日志写入文件:
- 将系统日志写入文件[f]ile
`logcat -f {{文件路径}}`
`logcat -f {{路径/到/文件}}`
- 显示与正则表达式匹配的行:
- 显示与正则表达式匹配的日志行:
`logcat --regex {{正则表达式}}`
- 显示特定 PID 的日志:
`logcat --pid {{pid}}`
- 显示特定包的进程日志:
`logcat --pid $(pidof -s {{包}})`