Logcat not showing debug level messages

后端 未结 2 942
时光说笑
时光说笑 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:20

    Also keep in mind, some manufacturers may restrict logging. (Eg. Huawei - Huawei, logcat not showing the log for my app?). If nothing works, try running on different mobile, or try to find a phone specific solution.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题