juan
juan

Reputation: 179

Android logs, What means verbosity?

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.

Upvotes: 3

Views: 13045

Answers (3)

chia yongkang
chia yongkang

Reputation: 782

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)

Upvotes: 1

Raghav Sood
Raghav Sood

Reputation: 82563

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.

Upvotes: 5

stinepike
stinepike

Reputation: 54692

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.

Upvotes: 0

Related Questions