Difference between log methods

前端 未结 4 1470
忘掉有多难
忘掉有多难 2021-01-03 01:14

I am new in android and i print log-cat using:

Log.w(\"Tag\", \"String text\");

and log text print but after searching for a time i find so

4条回答
  •  [愿得一人]
    2021-01-03 01:27

    The various single-letter methods indicate the severity of the log message. Subsequently, you can filter log messages based on both the tag and the severity, and prevent lesser-severity messages from being shown in your released application (for example).

    For more information:

    http://developer.android.com/guide/developing/debugging/debugging-log.html

提交回复
热议问题