diff --git a/pages.zh/common/adb-logcat.md b/pages.zh/common/adb-logcat.md new file mode 100644 index 0000000000..89f81f46df --- /dev/null +++ b/pages.zh/common/adb-logcat.md @@ -0,0 +1,28 @@ +# adb-logcat + +> 转储系统消息日志。 +> 更多信息:. + +- 显示系统日志: + +`adb logcat` + +- 显示符合正则表达式的行: + +`adb logcat -e {{正则表达式}}` + +- 显示特定优先级下(V:详细,D:调试,I:信息,W:警告,E:错误,F:严重错误,S:静默)标记的日志,过滤掉其他标记: + +`adb logcat {{标记}}:{{最低优先级}} *:S` + +- 在详细(V)模式下显示 React Native 应用程序的日志,静默(S)其他标记: + +`adb logcat ReactNative:V ReactNativeJS:V *:S` + +- 显示优先级为警告(W)及以上的所有标签的日志: + +`adb logcat *:W` + +- 给日志着色(通常与过滤器一起使用): + +`adb logcat -v color`