When should I use each log level in Android Studio?

Asked

Viewed 4,092 times

0

There are different levels of log in Android Studio, which maybe, I say maybe, is not much different in other IDE’s. Basically it’s the different ways I can record a message on logcat. The guys are VERBOSE,DEBUG, INFO, WARN, ERROR and ASSERT.

What does each of these mean? In what situations should I use them?

  • here on this link I opened by pressing the help of android studio: https://developer.android.com/studio/debug/am-logcat.html

  • done, @Ack Lay, if you like, it would be interesting for min (rerere) to mark the answer as correct.

1 answer

2

According to the official website of android studio help, https://developer.android.com/studio/debug/am-logcat.html, hereafter translated:

In the Record Level menu, select one of the following values:

  • Verbose - Shows all log messages (default).
  • Debug - Shows debugging log messages that are useful only during development, as well as the lower message levels in this list.
  • Info - Displays log messages expected for regular use as well as lower message levels in this list.
  • Warn - Shows possible problems that are not yet bugs, as well as lower message levels in this list.
  • Error - Shows problems that caused errors as well as the lower message level in this list.
  • Assert - Shows problems that the developer hopes will never happen.

that’s it...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.