Android - set default log level for DEBUG

I am working on Android 3.0. I have a service that starts at boot, and I have debugging in it. The problem is that I do not see the logs in LogCat, since the default log level is INFO after loading. Sometimes after loading, when I run from shell 'getprop log.tag.MyTag', I get an empty string. I canโ€™t understand why.
I know that sometimes Android shows debug logs, even if it is set to INFO, but before each log print, if the log level is enabled, I have a check.

How to change the default log level for a project?

+4
source share
1 answer

Try this if you do this from the command line:

adb logcat *:D 

If you are in Eclipse, the filters are in the upper right corner of the LogCat window.

In AndroidManifest.xml:

 <application ... android:debuggable="true"> 
+2
source

All Articles