From 8fbf8ec2cce92a4a3e7c0bb58df3dbf149c86814 Mon Sep 17 00:00:00 2001 From: Zhuang Ma Date: Thu, 22 Dec 2016 23:21:00 +0800 Subject: [PATCH] Fix #24, add notice for macOS --- README.en.md | 4 ++++ README.md | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.en.md b/README.en.md index 6c3e118..1a4f102 100644 --- a/README.en.md +++ b/README.en.md @@ -1056,8 +1056,12 @@ adb logcat *:W Will Warning, Error, Fatal and Silent log output. +(**Notice:** tag `*` must surrounded with double quotation, like `adb logcat "*:W"`, otherwise an error `no matches found *:W` would throws.) + #### Filter by tag and log level +filterspecs are a series of `[:priority]`. + For example, the command: ```sh diff --git a/README.md b/README.md index d5af618..f77970e 100644 --- a/README.md +++ b/README.md @@ -1036,7 +1036,7 @@ Android 系统的日志分为两部分,底层的 Linux 内核日志输出到 / #### 按级别过滤日志 -Android 的日志分为如下几个级别: +Android 的日志分为如下几个优先级(priority): * V —— Verbose(最低,输出得最多) * D —— Debug @@ -1056,8 +1056,12 @@ adb logcat *:W 会将 Warning、Error、Fatal 和 Silent 日志输出。 +(**注:**在 macOS 下需要给 `*:W` 这样以 `*` 作为 tag 的参数加双引号,如 `adb logcat "*:W"`,不然会报错 `no matches found: *:W`。) + #### 按 tag 和级别过滤日志 +`` 可以由多个 `[:priority]` 组成。 + 比如,命令: ```sh