Logcat not showing debug level messages

后端 未结 2 947
时光说笑
时光说笑 2020-12-17 16:01

For some reason I\'m able to see messages of all levels Log.i() and above, but not the Log.d() or Log.v() levels. Haven\'t had much luck finding a reason for this. Anyone ha

2条回答
  •  醉话见心
    2020-12-17 16:26

    Turns out I had to enable the appropriate logging level directly through ADB.

    $ ./adb shell stop
    $ ./adb shell setprop log.tag.MYTAG VERBOSE
    $ ./adb shell start
    

    This solved the problem. Seems like a pain to do that every time I restart my phone though.

提交回复
热议问题