å®ç°è¿æ»¤ä¸æ¾ç¤ºLogCatä¸æäºç±»åçlogä¿¡æ¯ï¼æ两ç§æ¹å¼ï¼
1.ç´æ¥æ°å»ºä¸ä¸ªè¿æ»¤å¨ï¼è¿æ»¤è§åï¼ï¼ç¶åå ä¸èªå·±çé
ç½®ï¼å°¤å
¶æ¯éè¿æ£å表达å¼å»å®ç°å¯¹äºæäºè§åçååï¼ä»èå®ç°è¿æ»¤ææäºä¿¡æ¯
æ¯å¦ï¼
å¨æ°å»ºçè§åä¸çby Log Tagä¸ï¼è¾å
¥ï¼
^(?!.*(IMGSRV)).*$
å³å¯è¿æ»¤æTagæ¯IMGSRVçé£äºlogä¿¡æ¯äºã
2.å¨LogCatçæ¥æ¾æ¡ä¸ç´æ¥è¾å
¥è¿æ»¤è§åï¼åçï¼éè¿æ£åå»è¾å
¥æäºè§åçååï¼å³å¯ã
æ¯å¦ï¼
å¨é»è®¤çé£ä¸ªï¼å½ä¸ºç©ºæ¶ï¼ä¼æ示 Search for messages. Accepts Java regexes. Prefix with pid:, app:, tag or text: to limit scope. çï¼è¾å
¥æ¡ä¸å ä¸ï¼
tag:^(?!.*(IMGSRV)).*$å³å¯ã
温馨提示:答案为网友推荐,仅供参考