How do I enable/disable log levels in Android?

后端 未结 18 2198
无人共我
无人共我 2020-11-22 16:42

I am having lots of logging statements to debug for example.

Log.v(TAG, \"Message here\");
Log.w(TAG, \" WARNING HERE\");

while deploying t

18条回答
  •  醉话见心
    2020-11-22 17:22

    https://limxtop.blogspot.com/2019/05/app-log.html

    Read this article please, where provides complete implement:

    1. For debug version, all the logs will be output;
    2. For release version, only the logs whose level is above DEBUG (exclude) will be output by default. In the meanwhile, the DEBUG and VERBOSE log can be enable through setprop log.tag. in running time.

提交回复
热议问题