android-studioadbandroid-logcatnokia

Log.println() method with Log.DEBUG and Log.VERBOSE not working in Nokia 1


I have checked and found that Log.println() method with Log.INFO is printing in logcat, but other mode is not working for Nokia 1.

I have already

(a) factory reset the phone,

(b) turn off the developer option and restart my phone,

(c) check for any logging option to be turned on

(d) increase logger buffer sizes to 1 M per log buffer

But nothing has any effect!


Solution

  • https://developer.android.com/reference/android/util/Log#isLoggable(java.lang.String,%20int)

    The default level of any tag is set to INFO. This means that any level above and including INFO will be logged. You can change the default level by setting a system property: 'setprop log.tag. '

    E.g. adb shell setprop log.tag.MyTag DEBUG