From 81be6e734c73eb145be9627ac5ca04c849429b72 Mon Sep 17 00:00:00 2001 From: HUGHNew Date: Mon, 29 Aug 2022 17:57:03 +0800 Subject: [PATCH 1/7] adb-logcat: add page(copied from android/logcat.md and enriched its examples) --- pages/common/adb-logcat.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/adb-logcat.md diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md new file mode 100644 index 00000000000000..5f31e0ecf2ddb3 --- /dev/null +++ b/pages/common/adb-logcat.md @@ -0,0 +1,20 @@ +# logcat + +> Dump a log of system messages. +> More information: . + +- Display system logs: + +`adb logcat` + +- Display lines that match a regular expression: + +`adb logcat -e {{regular_expression}}` + +- Filter the log with filterspecs(`{{complete_tag:[V | D | I | W | E | F | S]}}`), `*` for all but not a wildcard(`*:S` suppresses others) + +`adb logcat {{tag0:V}} {{tag1:D}} *:S` + +- Color the log(usually use with filters) + +`adb logcat -v color` \ No newline at end of file From 8d134cb6782ef5ffa639cd8d7d74751282595f21 Mon Sep 17 00:00:00 2001 From: Hugh <52786639+HUGHNew@users.noreply.github.com> Date: Wed, 31 Aug 2022 19:20:19 +0800 Subject: [PATCH 2/7] Update pages/common/adb-logcat.md add colon Co-authored-by: K.B.Dharun Krishna --- pages/common/adb-logcat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index 5f31e0ecf2ddb3..cc581cd1f1d2b6 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -15,6 +15,6 @@ `adb logcat {{tag0:V}} {{tag1:D}} *:S` -- Color the log(usually use with filters) +- Color the log(usually use with filters): `adb logcat -v color` \ No newline at end of file From 42097cdf6b1b724eb5e4db3162fe894db60dc210 Mon Sep 17 00:00:00 2001 From: Hugh <52786639+HUGHNew@users.noreply.github.com> Date: Wed, 31 Aug 2022 19:20:44 +0800 Subject: [PATCH 3/7] Update pages/common/adb-logcat.md rename command Co-authored-by: K.B.Dharun Krishna --- pages/common/adb-logcat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index cc581cd1f1d2b6..e26c7a2d7eeccd 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -1,4 +1,4 @@ -# logcat +# adb-logcat > Dump a log of system messages. > More information: . From 114cdbc9da048f8c719092c6d7981e26d6e9a6b7 Mon Sep 17 00:00:00 2001 From: Hugh <52786639+HUGHNew@users.noreply.github.com> Date: Wed, 31 Aug 2022 19:20:52 +0800 Subject: [PATCH 4/7] Update pages/common/adb-logcat.md Co-authored-by: K.B.Dharun Krishna --- pages/common/adb-logcat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index e26c7a2d7eeccd..e3611ae4e598fb 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -11,7 +11,7 @@ `adb logcat -e {{regular_expression}}` -- Filter the log with filterspecs(`{{complete_tag:[V | D | I | W | E | F | S]}}`), `*` for all but not a wildcard(`*:S` suppresses others) +- Filter the log with filterspecs(`{{complete_tag:[V | D | I | W | E | F | S]}}`), `*` for all but not a wildcard(`*:S` suppresses others): `adb logcat {{tag0:V}} {{tag1:D}} *:S` From 433d58cce14c5d96595563d3ef5025335fe093ca Mon Sep 17 00:00:00 2001 From: HUGHNew Date: Wed, 31 Aug 2022 19:25:08 +0800 Subject: [PATCH 5/7] fix: new line at EOF --- pages/common/adb-logcat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index e3611ae4e598fb..fa8a3de7aafedf 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -17,4 +17,4 @@ - Color the log(usually use with filters): -`adb logcat -v color` \ No newline at end of file +`adb logcat -v color` From b4fe6b58f45de2d2794594c5a337cfb02eeec7fc Mon Sep 17 00:00:00 2001 From: Hugh <52786639+HUGHNew@users.noreply.github.com> Date: Thu, 1 Sep 2022 21:48:43 +0800 Subject: [PATCH 6/7] Update pages/common/adb-logcat.md Co-authored-by: Axel Navarro --- pages/common/adb-logcat.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index fa8a3de7aafedf..316c3a1951e02d 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -11,9 +11,17 @@ `adb logcat -e {{regular_expression}}` -- Filter the log with filterspecs(`{{complete_tag:[V | D | I | W | E | F | S]}}`), `*` for all but not a wildcard(`*:S` suppresses others): +- Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags: -`adb logcat {{tag0:V}} {{tag1:D}} *:S` +`adb logcat {{tag}}:{{mode}} *:S` + +- Display logs for React Native applications in [V]erbose mode [S]ilencing other tags: + +`adb logcat ReactNative:V ReactNativeJS:V *:S` + +- Display logs for all tags with priority level [W]arning and higher: + +`adb logcat *:W` - Color the log(usually use with filters): From 99f86d6b509ee6de0f2fc2ac51b1172170f8eaf0 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 1 Sep 2022 18:15:27 -0300 Subject: [PATCH 7/7] Update pages/common/adb-logcat.md Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> --- pages/common/adb-logcat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/adb-logcat.md b/pages/common/adb-logcat.md index 316c3a1951e02d..5b7591673cc705 100644 --- a/pages/common/adb-logcat.md +++ b/pages/common/adb-logcat.md @@ -23,6 +23,6 @@ `adb logcat *:W` -- Color the log(usually use with filters): +- Color the log (usually use with filters): `adb logcat -v color`