{"id":54,"date":"2024-06-17T21:48:07","date_gmt":"2024-06-17T13:48:07","guid":{"rendered":"https:\/\/www.swreader.com\/?p=54"},"modified":"2024-06-22T10:59:06","modified_gmt":"2024-06-22T02:59:06","slug":"android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/","title":{"rendered":"Android logcat\u4f7f\u7528\u603b\u7ed3"},"content":{"rendered":"<p>\u5f53\u4f7f\u7528 <code>adb logcat<\/code> \u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u9009\u9879\u548c\u53c2\u6570\u6765\u66f4\u7cbe\u786e\u5730\u63a7\u5236\u548c\u8fc7\u6ee4\u65e5\u5fd7\u7684\u8f93\u51fa\u3002\u4ee5\u4e0b\u662f\u5bf9\u6bcf\u4e2a\u53c2\u6570\u8be6\u7ec6\u7684\u8bf4\u660e\uff1a<\/p>\n<h3>1. \u57fa\u672c\u7528\u6cd5<\/h3>\n<pre><code class=\"language-bash\">adb logcat<\/code><\/pre>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8be5\u547d\u4ee4\u4f1a\u5b9e\u65f6\u8f93\u51fa\u6240\u6709\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<ul>\n<li><strong>\u8bf4\u660e<\/strong>\uff1a\n<ul>\n<li><code>adb logcat<\/code> \u5c06\u6301\u7eed\u4ece\u8bbe\u5907\u83b7\u53d6\u65e5\u5fd7\uff0c\u5e76\u5c06\u5176\u8f93\u51fa\u5230\u63a7\u5236\u53f0\uff0c\u76f4\u5230\u624b\u52a8\u4e2d\u65ad\uff08Ctrl+C\uff09\u3002<\/li>\n<li>\u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u5305\u542b\u65f6\u95f4\u6233\u3001\u4f18\u5148\u7ea7\u3001\u6807\u7b7e\u548c\u6d88\u606f\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>2. \u8fc7\u6ee4\u7ea7\u522b\u9009\u9879<\/h3>\n<p>\u901a\u8fc7\u6307\u5b9a\u65e5\u5fd7\u7684\u4f18\u5148\u7ea7\u8fc7\u6ee4\u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9009\u9879<\/strong>\uff1a<\/p>\n<ul>\n<li><code>*:S<\/code> &#8211; Silent\uff0c\u4e0d\u8f93\u51fa\u4efb\u4f55\u65e5\u5fd7\u3002<\/li>\n<li><code>*:V<\/code> &#8211; Verbose\uff0c\u8f93\u51fa\u6240\u6709\u65e5\u5fd7\u3002<\/li>\n<li><code>*:D<\/code> &#8211; Debug\uff0c\u8f93\u51fa\u8c03\u8bd5\u76f8\u5173\u7684\u65e5\u5fd7\u3002<\/li>\n<li><code>*:I<\/code> &#8211; Info\uff0c\u8f93\u51fa\u666e\u901a\u4fe1\u606f\u65e5\u5fd7\u3002<\/li>\n<li><code>*:W<\/code> &#8211; Warning\uff0c\u8f93\u51fa\u8b66\u544a\u4fe1\u606f\u3002<\/li>\n<li><code>*:E<\/code> &#8211; Error\uff0c\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<li><code>*:F<\/code> &#8211; Fatal\uff0c\u8f93\u51fa\u4e25\u91cd\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n<pre><code class=\"language-bash\">adb logcat *:E<\/code><\/pre>\n<p>\u8fd9\u5c06\u53ea\u8f93\u51fa\u9519\u8bef\u7ea7\u522b\u53ca\u4ee5\u4e0a\u7684\u65e5\u5fd7\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>3. \u8f93\u51fa\u683c\u5f0f\u9009\u9879<\/h3>\n<p>\u63a7\u5236\u65e5\u5fd7\u8f93\u51fa\u7684\u683c\u5f0f\u548c\u663e\u793a\u5185\u5bb9\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9009\u9879<\/strong>\uff1a<\/p>\n<ul>\n<li><code>-v &lt;format&gt;<\/code> \u6216 <code>--format=&lt;format&gt;<\/code>\uff1a\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\u3002<\/li>\n<li><code>brief<\/code> &#8211; \u7b80\u77ed\u683c\u5f0f\uff08\u9ed8\u8ba4\uff09\uff0c\u5305\u542b\u65f6\u95f4\u6233\u3001\u4f18\u5148\u7ea7\u3001\u6807\u7b7e\u548c\u6d88\u606f\u5185\u5bb9\u3002<\/li>\n<li><code>process<\/code> &#8211; \u5305\u542b\u8fdb\u7a0b ID \u548c\u7b80\u77ed\u683c\u5f0f\u3002<\/li>\n<li><code>tag<\/code> &#8211; \u5305\u542b\u6807\u7b7e\u548c\u7b80\u77ed\u683c\u5f0f\u3002<\/li>\n<li><code>raw<\/code> &#8211; \u539f\u59cb\u6d88\u606f\u683c\u5f0f\u3002<\/li>\n<li><code>time<\/code> &#8211; \u5305\u542b\u65f6\u95f4\u6233\u548c\u7b80\u77ed\u683c\u5f0f\u3002<\/li>\n<li><code>threadtime<\/code> &#8211; \u5305\u542b\u65f6\u95f4\u6233\u3001\u7ebf\u7a0b ID \u548c\u7b80\u77ed\u683c\u5f0f\u3002<\/li>\n<li><code>long<\/code> &#8211; \u5b8c\u6574\u8be6\u7ec6\u683c\u5f0f\u3002<\/li>\n<li><code>json<\/code> &#8211; \u8f93\u51fa JSON \u683c\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n<pre><code class=\"language-bash\">adb logcat -v time<\/code><\/pre>\n<p>\u8fd9\u5c06\u5728\u6bcf\u6761\u65e5\u5fd7\u524d\u663e\u793a\u65f6\u95f4\u6233\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u8fc7\u6ee4\u6807\u7b7e\u9009\u9879<\/h3>\n<p>\u901a\u8fc7\u6307\u5b9a\u6807\u7b7e\u6765\u8fc7\u6ee4\u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9009\u9879<\/strong>\uff1a<\/p>\n<ul>\n<li><code>-s &lt;tag&gt;<\/code>\uff1a\u4ec5\u663e\u793a\u6307\u5b9a\u6807\u7b7e\u7684\u65e5\u5fd7\u6d88\u606f\u3002<\/li>\n<li>\u53ef\u4ee5\u6307\u5b9a\u591a\u4e2a\u6807\u7b7e\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n<pre><code class=\"language-bash\">adb logcat -s TAG1,TAG2<\/code><\/pre>\n<p>\u8fd9\u5c06\u53ea\u663e\u793a <code>TAG1<\/code> \u548c <code>TAG2<\/code> \u6807\u7b7e\u7684\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>5. \u67e5\u770b\u6307\u5b9a\u7f13\u51b2\u533a<\/h3>\n<p>Android \u7cfb\u7edf\u4e2d\u6709\u51e0\u4e2a\u65e5\u5fd7\u7f13\u51b2\u533a\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>-b<\/code> \u9009\u9879\u67e5\u770b\u6307\u5b9a\u7684\u7f13\u51b2\u533a\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u9009\u9879<\/strong>\uff1a<\/p>\n<ul>\n<li><code>-b &lt;buffer&gt;<\/code>\uff1a\u6307\u5b9a\u8981\u67e5\u770b\u7684\u65e5\u5fd7\u7f13\u51b2\u533a\u3002<\/li>\n<li><code>main<\/code> &#8211; \u4e3b\u7f13\u51b2\u533a\uff08\u9ed8\u8ba4\uff09\u3002<\/li>\n<li><code>events<\/code> &#8211; \u4e8b\u4ef6\u7f13\u51b2\u533a\u3002<\/li>\n<li><code>radio<\/code> &#8211; \u65e0\u7ebf\u7535\u7f13\u51b2\u533a\u3002<\/li>\n<li><code>system<\/code> &#8211; \u7cfb\u7edf\u7f13\u51b2\u533a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a<\/p>\n<pre><code class=\"language-bash\">adb logcat -b system<\/code><\/pre>\n<p>\u8fd9\u5c06\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u7f13\u51b2\u533a\u7684\u65e5\u5fd7\u6d88\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>6. \u5176\u4ed6\u9009\u9879<\/h3>\n<ul>\n<li>\n<p><strong><code>-c<\/code><\/strong>\uff1a\u6e05\u7a7a\u65e5\u5fd7\u7f13\u51b2\u533a\u3002<\/p>\n<ul>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\n<pre><code class=\"language-bash\">adb logcat -c<\/code><\/pre>\n<p>\u8fd9\u5c06\u6e05\u7a7a\u6240\u6709\u65e5\u5fd7\u7f13\u51b2\u533a\u4e2d\u7684\u5185\u5bb9\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong><code>-d<\/code><\/strong>\uff1a\u5c06\u65e5\u5fd7\u6d88\u606f\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u540e\u9000\u51fa\u3002<\/p>\n<ul>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\n<pre><code class=\"language-bash\">adb logcat -d<\/code><\/pre>\n<p>\u8fd9\u5c06\u8f93\u51fa\u5f53\u524d\u8bbe\u5907\u7684\u6240\u6709\u65e5\u5fd7\u6d88\u606f\uff0c\u5e76\u5728\u5b8c\u6210\u540e\u9000\u51fa\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong><code>-t &lt;count&gt;<\/code><\/strong>\uff1a\u9650\u5236\u8f93\u51fa\u7684\u65e5\u5fd7\u6761\u76ee\u6570\u3002<\/p>\n<ul>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\n<pre><code class=\"language-bash\">adb logcat -t 100<\/code><\/pre>\n<p>\u8fd9\u5c06\u9650\u5236\u8f93\u51fa\u7684\u65e5\u5fd7\u6761\u76ee\u6570\u4e3a 100 \u6761\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>7. \u7ed3\u5408\u4f7f\u7528\u9009\u9879<\/h3>\n<p>\u53ef\u4ee5\u7ed3\u5408\u591a\u4e2a\u9009\u9879\u6765\u6ee1\u8db3\u5177\u4f53\u7684\u8c03\u8bd5\u9700\u6c42\u3002<\/p>\n<ul>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\n<pre><code class=\"language-bash\">adb logcat -v time -s TAG1,TAG2 *:W<\/code><\/pre>\n<p>\u8fd9\u6761\u547d\u4ee4\u5c06\u663e\u793a <code>TAG1<\/code> \u548c <code>TAG2<\/code> \u7684\u8b66\u544a\u53ca\u4ee5\u4e0a\u7ea7\u522b\u7684\u65e5\u5fd7\uff0c\u5e76\u5728\u6bcf\u6761\u65e5\u5fd7\u524d\u663e\u793a\u65f6\u95f4\u6233\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>8. Windows PowerShell \u517c\u5bb9\u6027<\/h3>\n<p>\u5728 Windows PowerShell \u4e2d\u4f7f\u7528 adb logcat \u65f6\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u7279\u6b8a\u7684\u8f93\u51fa\u5904\u7406\u65b9\u5f0f\u6765\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<ul>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\n<pre><code class=\"language-powershell\">adb logcat -v time | Out-File -FilePath log.txt -Encoding utf8<\/code><\/pre>\n<p>\u8fd9\u6761\u547d\u4ee4\u5c06 logcat \u8f93\u51fa\u4fdd\u5b58\u5230 <code>log.txt<\/code> \u6587\u4ef6\u4e2d\uff0c\u5e76\u786e\u4fdd\u6b63\u786e\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>9. \u4f7f\u7528\u573a\u666f<\/h3>\n<ul>\n<li><strong>\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u76d1\u89c6\u5e94\u7528\u7a0b\u5e8f\u7684\u65e5\u5fd7\u8f93\u51fa\uff0c\u67e5\u627e\u95ee\u9898\u548c\u5f02\u5e38\u3002<\/li>\n<li><strong>\u7cfb\u7edf\u8c03\u8bd5<\/strong>\uff1a\u67e5\u770b\u7cfb\u7edf\u7ea7\u522b\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u4e86\u89e3\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u548c\u95ee\u9898\u3002<\/li>\n<li><strong>\u6027\u80fd\u5206\u6790<\/strong>\uff1a\u901a\u8fc7\u67e5\u770b\u65e5\u5fd7\u4fe1\u606f\uff0c\u5206\u6790\u5e94\u7528\u7a0b\u5e8f\u548c\u7cfb\u7edf\u7684\u6027\u80fd\u8868\u73b0\u3002<\/li>\n<\/ul>\n<p>Logcat \u662f Android \u5f00\u53d1\u548c\u8c03\u8bd5\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u719f\u7ec3\u638c\u63e1\u5176\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u5347\u5f00\u53d1\u6548\u7387\u548c\u95ee\u9898\u5b9a\u4f4d\u80fd\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f7f\u7528 adb logcat \u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u9009\u9879\u548c\u53c2\u6570\u6765\u66f4\u7cbe\u786e\u5730\u63a7\u5236\u548c\u8fc7\u6ee4\u65e5\u5fd7\u7684\u8f93\u51fa\u3002\u4ee5\u4e0b\u662f\u5bf9\u6bcf\u4e2a\u53c2\u6570\u8be6\u7ec6\u7684\u8bf4\u660e\uff1a 1. \u57fa\u672c\u7528\u6cd5 adb logcat \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8be5\u547d\u4ee4\u4f1a\u5b9e\u65f6\u8f93\u51fa\u6240\u6709\u65e5\u5fd7\u6d88\u606f\u3002 \u8bf4\u660e\uff1a adb logcat \u5c06\u6301\u7eed\u4ece\u8bbe\u5907\u83b7\u53d6\u65e5\u5fd7\uff0c\u5e76\u5c06\u5176\u8f93\u51fa\u5230\u63a7\u5236\u53f0\uff0c\u76f4\u5230\u624b\u52a8\u4e2d\u65ad\uff08Ctrl+C\uff09\u3002 \u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u5305\u542b\u65f6\u95f4\u6233\u3001\u4f18\u5148\u7ea7\u3001\u6807\u7b7e\u548c\u6d88\u606f\u5185\u5bb9\u3002 2. \u8fc7\u6ee4\u7ea7\u522b\u9009\u9879 \u901a\u8fc7\u6307\u5b9a\u65e5\u5fd7\u7684\u4f18\u5148\u7ea7\u8fc7\u6ee4\u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u3002 \u9009\u9879\uff1a *:S &#8211; Silent\uff0c\u4e0d\u8f93\u51fa\u4efb\u4f55\u65e5\u5fd7\u3002 *:V &#8211; Verbose\uff0c\u8f93\u51fa\u6240\u6709\u65e5\u5fd7\u3002 *:D &#8211; Debug\uff0c\u8f93\u51fa\u8c03\u8bd5\u76f8\u5173\u7684\u65e5\u5fd7\u3002 *:I &#8211; Info\uff0c\u8f93\u51fa\u666e\u901a\u4fe1\u606f\u65e5\u5fd7\u3002 *:W &#8211; Warning\uff0c\u8f93\u51fa\u8b66\u544a\u4fe1\u606f\u3002 *:E &#8211; Error\uff0c\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\u3002 *:F &#8211; Fatal\uff0c\u8f93\u51fa\u4e25\u91cd\u9519\u8bef\u4fe1\u606f\u3002 \u793a\u4f8b\uff1a adb logcat *:E \u8fd9\u5c06\u53ea\u8f93\u51fa\u9519\u8bef\u7ea7\u522b\u53ca\u4ee5\u4e0a\u7684\u65e5\u5fd7\u4fe1\u606f\u3002 3. \u8f93\u51fa\u683c\u5f0f\u9009\u9879 \u63a7\u5236\u65e5\u5fd7\u8f93\u51fa\u7684\u683c\u5f0f\u548c\u663e\u793a\u5185\u5bb9\u3002 \u9009\u9879\uff1a -v &lt;format&gt; \u6216 &#8211;format=&lt;format&gt;\uff1a\u6307\u5b9a\u8f93\u51fa\u683c\u5f0f\u3002 brief &#8211; \u7b80\u77ed\u683c\u5f0f\uff08\u9ed8\u8ba4\uff09\uff0c\u5305\u542b\u65f6\u95f4\u6233\u3001\u4f18\u5148\u7ea7\u3001\u6807\u7b7e\u548c\u6d88\u606f\u5185\u5bb9\u3002 process &#8211; \u5305\u542b\u8fdb\u7a0b ID \u548c\u7b80\u77ed\u683c\u5f0f\u3002 tag &#8211; \u5305\u542b\u6807\u7b7e\u548c\u7b80\u77ed\u683c\u5f0f\u3002 raw &#8211; \u539f\u59cb\u6d88\u606f\u683c\u5f0f\u3002 time &#8211; \u5305\u542b\u65f6\u95f4\u6233\u548c\u7b80\u77ed\u683c\u5f0f\u3002 threadtime &#8211; \u5305\u542b\u65f6\u95f4\u6233\u3001\u7ebf\u7a0b ID \u548c\u7b80\u77ed\u683c\u5f0f\u3002 long &#8211; \u5b8c\u6574\u8be6\u7ec6\u683c\u5f0f\u3002 json &#8211; \u8f93\u51fa JSON \u683c\u5f0f\u3002 \u793a\u4f8b\uff1a adb logcat -v time \u8fd9\u5c06\u5728\u6bcf\u6761\u65e5\u5fd7\u524d\u663e\u793a\u65f6\u95f4\u6233\u3002 4. \u8fc7\u6ee4\u6807\u7b7e\u9009\u9879 \u901a\u8fc7\u6307\u5b9a\u6807\u7b7e\u6765\u8fc7\u6ee4\u8f93\u51fa\u7684\u65e5\u5fd7\u6d88\u606f\u3002 \u9009\u9879\uff1a -s &lt;tag&gt;\uff1a\u4ec5\u663e\u793a\u6307\u5b9a\u6807\u7b7e\u7684\u65e5\u5fd7\u6d88\u606f\u3002 \u53ef\u4ee5\u6307\u5b9a\u591a\u4e2a\u6807\u7b7e\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 \u793a\u4f8b\uff1a adb logcat -s TAG1,TAG2 \u8fd9\u5c06\u53ea\u663e\u793a TAG1 \u548c TAG2 \u6807\u7b7e\u7684\u65e5\u5fd7\u6d88\u606f\u3002 5. \u67e5\u770b\u6307\u5b9a\u7f13\u51b2\u533a Android \u7cfb\u7edf\u4e2d\u6709\u51e0\u4e2a\u65e5\u5fd7\u7f13\u51b2\u533a\uff0c\u53ef\u4ee5\u901a\u8fc7 -b \u9009\u9879\u67e5\u770b\u6307\u5b9a\u7684\u7f13\u51b2\u533a\u3002 \u9009\u9879\uff1a -b &lt;buffer&gt;\uff1a\u6307\u5b9a\u8981\u67e5\u770b\u7684\u65e5\u5fd7\u7f13\u51b2\u533a\u3002 main &#8211; \u4e3b\u7f13\u51b2\u533a\uff08\u9ed8\u8ba4\uff09\u3002 events &#8211; \u4e8b\u4ef6\u7f13\u51b2\u533a\u3002 radio &#8211; \u65e0\u7ebf\u7535\u7f13\u51b2\u533a\u3002 system &#8211; \u7cfb\u7edf\u7f13\u51b2\u533a\u3002 \u793a\u4f8b\uff1a adb logcat -b system \u8fd9\u5c06\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u7f13\u51b2\u533a\u7684\u65e5\u5fd7\u6d88\u606f\u3002 6. \u5176\u4ed6\u9009\u9879 -c\uff1a\u6e05\u7a7a\u65e5\u5fd7\u7f13\u51b2\u533a\u3002 \u793a\u4f8b\uff1a adb logcat -c \u8fd9\u5c06\u6e05\u7a7a\u6240\u6709\u65e5\u5fd7\u7f13\u51b2\u533a\u4e2d\u7684\u5185\u5bb9\u3002 -d\uff1a\u5c06\u65e5\u5fd7\u6d88\u606f\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u540e\u9000\u51fa\u3002 \u793a\u4f8b\uff1a adb logcat -d \u8fd9\u5c06\u8f93\u51fa\u5f53\u524d\u8bbe\u5907\u7684\u6240\u6709\u65e5\u5fd7\u6d88\u606f\uff0c\u5e76\u5728\u5b8c\u6210\u540e\u9000\u51fa\u3002 -t &lt;count&gt;\uff1a\u9650\u5236\u8f93\u51fa\u7684\u65e5\u5fd7\u6761\u76ee\u6570\u3002 \u793a\u4f8b\uff1a adb logcat -t 100 \u8fd9\u5c06\u9650\u5236\u8f93\u51fa\u7684\u65e5\u5fd7\u6761\u76ee\u6570\u4e3a 100 \u6761\u3002 7. \u7ed3\u5408\u4f7f\u7528\u9009\u9879 \u53ef\u4ee5\u7ed3\u5408\u591a\u4e2a\u9009\u9879\u6765\u6ee1\u8db3\u5177\u4f53\u7684\u8c03\u8bd5\u9700\u6c42\u3002 \u793a\u4f8b\uff1a adb logcat -v time -s TAG1,TAG2 *:W \u8fd9\u6761\u547d\u4ee4\u5c06\u663e\u793a TAG1 \u548c TAG2 \u7684\u8b66\u544a\u53ca\u4ee5\u4e0a\u7ea7\u522b\u7684\u65e5\u5fd7\uff0c\u5e76\u5728\u6bcf\u6761\u65e5\u5fd7\u524d\u663e\u793a\u65f6\u95f4\u6233\u3002 8. Windows PowerShell \u517c\u5bb9\u6027 \u5728 Windows PowerShell \u4e2d\u4f7f\u7528 adb logcat \u65f6\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u7279\u6b8a\u7684\u8f93\u51fa\u5904\u7406\u65b9\u5f0f\u6765\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u3002 \u793a\u4f8b\uff1a adb logcat -v time | Out-File -FilePath log.txt -Encoding utf8 \u8fd9\u6761\u547d\u4ee4\u5c06 logcat \u8f93\u51fa\u4fdd\u5b58\u5230 log.txt \u6587\u4ef6\u4e2d\uff0c\u5e76\u786e\u4fdd\u6b63\u786e\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u3002 9. \u4f7f\u7528\u573a\u666f \u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff1a\u76d1\u89c6\u5e94\u7528\u7a0b\u5e8f\u7684\u65e5\u5fd7\u8f93\u51fa\uff0c\u67e5\u627e\u95ee\u9898\u548c\u5f02\u5e38\u3002 \u7cfb\u7edf\u8c03\u8bd5\uff1a\u67e5\u770b\u7cfb\u7edf\u7ea7\u522b\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u4e86\u89e3\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u548c\u95ee\u9898\u3002 \u6027\u80fd\u5206\u6790\uff1a\u901a\u8fc7\u67e5\u770b\u65e5\u5fd7\u4fe1\u606f\uff0c\u5206\u6790\u5e94\u7528\u7a0b\u5e8f\u548c\u7cfb\u7edf\u7684\u6027\u80fd\u8868\u73b0\u3002 Logcat \u662f Android \u5f00\u53d1\u548c\u8c03\u8bd5\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u719f\u7ec3\u638c\u63e1\u5176\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u5347\u5f00\u53d1\u6548\u7387\u548c\u95ee\u9898\u5b9a\u4f4d\u80fd\u529b\u3002<\/p>\n","protected":false},"author":1,"featured_media":194,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[3],"tags":[14,25,24],"class_list":["post-54","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-android","tag-debug","tag-logcat"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %<\/title>\n<meta name=\"description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat\u4f7f\u7528\u603b\u7ed3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat\u4f7f\u7528\u603b\u7ed3\/\" \/>\n<meta property=\"og:site_name\" content=\"TianYa Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-17T13:48:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-22T02:59:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"zdm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zdm\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/\"},\"author\":{\"name\":\"zdm\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#\\\/schema\\\/person\\\/9c90501e33afc9307d757bc8cfaf1c6f\"},\"headline\":\"Android logcat\u4f7f\u7528\u603b\u7ed3\",\"datePublished\":\"2024-06-17T13:48:07+00:00\",\"dateModified\":\"2024-06-22T02:59:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/\"},\"wordCount\":43,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#\\\/schema\\\/person\\\/9c90501e33afc9307d757bc8cfaf1c6f\"},\"image\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.swreader.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/android_icon-e1719025134735.png\",\"keywords\":[\"Android\",\"Debug\",\"logcat\"],\"articleSection\":[\"Android\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/\",\"url\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/\",\"name\":\"Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.swreader.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/android_icon-e1719025134735.png\",\"datePublished\":\"2024-06-17T13:48:07+00:00\",\"dateModified\":\"2024-06-22T02:59:06+00:00\",\"description\":\"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.swreader.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/android_icon-e1719025134735.png\",\"contentUrl\":\"https:\\\/\\\/www.swreader.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/android_icon-e1719025134735.png\",\"width\":350,\"height\":350},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/2024\\\/06\\\/17\\\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.swreader.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android logcat\u4f7f\u7528\u603b\u7ed3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#website\",\"url\":\"https:\\\/\\\/www.swreader.com\\\/\",\"name\":\"TianYa Blog\",\"description\":\"Technology And Life\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#\\\/schema\\\/person\\\/9c90501e33afc9307d757bc8cfaf1c6f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.swreader.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.swreader.com\\\/#\\\/schema\\\/person\\\/9c90501e33afc9307d757bc8cfaf1c6f\",\"name\":\"zdm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g\",\"caption\":\"zdm\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g\"},\"sameAs\":[\"http:\\\/\\\/www.swreader.com\"],\"url\":\"https:\\\/\\\/www.swreader.com\\\/index.php\\\/author\\\/zdm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %","description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat\u4f7f\u7528\u603b\u7ed3\/","og_locale":"zh_CN","og_type":"article","og_title":"Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %","og_description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002","og_url":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat\u4f7f\u7528\u603b\u7ed3\/","og_site_name":"TianYa Blog","article_published_time":"2024-06-17T13:48:07+00:00","article_modified_time":"2024-06-22T02:59:06+00:00","og_image":[{"width":350,"height":350,"url":"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png","type":"image\/png"}],"author":"zdm","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zdm","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#article","isPartOf":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/"},"author":{"name":"zdm","@id":"https:\/\/www.swreader.com\/#\/schema\/person\/9c90501e33afc9307d757bc8cfaf1c6f"},"headline":"Android logcat\u4f7f\u7528\u603b\u7ed3","datePublished":"2024-06-17T13:48:07+00:00","dateModified":"2024-06-22T02:59:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/"},"wordCount":43,"commentCount":0,"publisher":{"@id":"https:\/\/www.swreader.com\/#\/schema\/person\/9c90501e33afc9307d757bc8cfaf1c6f"},"image":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#primaryimage"},"thumbnailUrl":"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png","keywords":["Android","Debug","logcat"],"articleSection":["Android"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/","url":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/","name":"Android logcat\u4f7f\u7528\u603b\u7ed3 - TianYa Blog Android %","isPartOf":{"@id":"https:\/\/www.swreader.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#primaryimage"},"image":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#primaryimage"},"thumbnailUrl":"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png","datePublished":"2024-06-17T13:48:07+00:00","dateModified":"2024-06-22T02:59:06+00:00","description":"\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Android\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\u4e4b\u4e00\u2014\u2014logcat\u547d\u4ee4\u3002\u6587\u7ae0\u4ece\u57fa\u672c\u6982\u8ff0\u5f00\u59cb\uff0c\u89e3\u91ca\u4e86logcat\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u5e38\u7528\u9009\u9879\uff0c\u5305\u62ec\u5982\u4f55\u901a\u8fc7\u8fc7\u6ee4\u5668\u89c4\u5219\u7cbe\u786e\u67e5\u770b\u548c\u7ba1\u7406\u8bbe\u5907\u65e5\u5fd7\u6d88\u606f\u3002\u901a\u8fc7\u8be6\u7ec6\u7684\u793a\u4f8b\u548c\u89e3\u91ca\uff0c\u8bfb\u8005\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u5229 % \u7528logcat\u547d\u4ee4\u6709\u6548\u5730\u8c03\u8bd5\u548c\u5206\u6790Android\u5e94\u7528\u7a0b\u5e8f\u3002","breadcrumb":{"@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#primaryimage","url":"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png","contentUrl":"https:\/\/www.swreader.com\/wp-content\/uploads\/2024\/06\/android_icon-e1719025134735.png","width":350,"height":350},{"@type":"BreadcrumbList","@id":"https:\/\/www.swreader.com\/index.php\/2024\/06\/17\/android-logcat%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.swreader.com\/"},{"@type":"ListItem","position":2,"name":"Android logcat\u4f7f\u7528\u603b\u7ed3"}]},{"@type":"WebSite","@id":"https:\/\/www.swreader.com\/#website","url":"https:\/\/www.swreader.com\/","name":"TianYa Blog","description":"Technology And Life","publisher":{"@id":"https:\/\/www.swreader.com\/#\/schema\/person\/9c90501e33afc9307d757bc8cfaf1c6f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.swreader.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.swreader.com\/#\/schema\/person\/9c90501e33afc9307d757bc8cfaf1c6f","name":"zdm","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g","caption":"zdm"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/2670c9b6412a56381880b2ca03988f659e8a378fe7332238a4a741b660a60997?s=96&d=mm&r=g"},"sameAs":["http:\/\/www.swreader.com"],"url":"https:\/\/www.swreader.com\/index.php\/author\/zdm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":3,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/posts\/54\/revisions\/59"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/media\/194"}],"wp:attachment":[{"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.swreader.com\/index.php\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}