Logcat log warning/errors

前端 未结 2 1472
名媛妹妹
名媛妹妹 2021-01-19 20:19

When I connect my galaxy s3 mini via ADB and try debug application with android studio I get endless error/warning messages in logcat, non-stop messages goes like crazy. Is

2条回答
  •  野的像风
    2021-01-19 20:32

    Simplest answer is that is normal to see all this verbose logging (the logcat contains info from everything on the phone, so can get quite verbose).

    You can filter what is shown in logcat by using filters. If using the command line, it might look something like this (don't forget the end S:* - which indicates to 'Silence' everything. A simple tag filter from command line might look like this (show only messages with tags SHOWTAG1, and SHOWTAG2:

    adb logcat SHOWTAG1:* SHOWTAG2:* S:*
    

    The eclipse tooling (and maybe Android Studio, not sure) also has a Logcat viewer, which allows you to apply tags to filter by, or otherwise, use Regex or other filtering mechanisms to modify what is shown.

    Bottom line, Logcat is verbose, you will need to filter it specifically to see what you want.

提交回复
热议问题