1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {{包}})`