Question

According Android documentation about Log.e, Log.v,...: "The order in terms of verbosity, from least to most is ERROR, WARN, INFO, DEBUG, VERBOSE. Verbose should never be compiled into an application except during development"

My questions is, What means verbosity? Because If i use Log.v("TAG","STRING"); or Log.e("TAG","STRING"); i see the same info.

Was it helpful?

Solution

Verbosity here, simply put, means the level of "casualness" of that message. Error is obviously the most important, and hence least casual, while verbose is the other way around.

You will see the same content when using any of them, but when using logcat filters you can filter only errors or any other level, in which case it'll only show messages of that level.

As per Docs

The order in terms of verbosity, from least to most is ERROR, WARN, INFO, DEBUG, VERBOSE.

OTHER TIPS

Verbose means that it is the least important Log in the logging Tier.

from the docs https://developer.android.com/studio/debug/am-logcat

listed in order from the highest to lowest priority

Log.e(String, String) (error)
Log.w(String, String) (warning)
Log.i(String, String) (information)
Log.d(String, String) (debug)
Log.v(String, String) (verbose)

check this similar so answer

Log.v: Use this when you want to go absolutely nuts with your logging. If for some reason you've decided to log every little thing in a particular part of your app, use the Log.v tag.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top