How do I enable/disable log levels in Android?

后端 未结 18 2166
无人共我
无人共我 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:20

    Another way is to use a logging platform that has the capabilities of opening and closing logs. This can give much of flexibility sometimes even on a production app which logs should be open and which closed depending on which issues you have for example:

    • LumberJack
    • Shipbook (disclaimer: I'm the author of this package)

提交回复
热议问题