Anko: AnkoLogger version 0.7.2 works with info level only

Created on 29 Oct 2015  路  4Comments  路  Source: Kotlin/anko

I have tried with android.util.Log and it works perfectly on my Android Studio, but with AnkoLogger, it works with info level only. I have never changed any configuration of my IDE.

fixed question

Most helpful comment

This is a pretty poor design choice imo. There is no need for the extra effort just to get a statement to print to logcat...

All 4 comments

AnkoLogger uses Log.isLoggable() under the hood which ignores VERBOSE and DEBUG log levels by default.
You can read more about it here: https://mobiarch.wordpress.com/2012/05/11/proper-logging-from-android-application/.

This is a pretty poor design choice imo. There is no need for the extra effort just to get a statement to print to logcat...

So how can I enable the log for VERBOSE and DEBUG?

@hendrawd It seems the way to enable the log is to do the following:

$ adb shell
$ setprop  log.tag.TAG  VERBOSE

where TAG is any tag you want to see (This is probably the name of the class doing the logging.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeantuffier picture jeantuffier  路  5Comments

s949492225 picture s949492225  路  4Comments

HarryTylenol picture HarryTylenol  路  4Comments

lupajz picture lupajz  路  3Comments

SuleymanovTat picture SuleymanovTat  路  4Comments