In slf4j-android 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.<YOUR_LOG_TAG> <LEVEL>. Where:
- <YOUR_LOG_TAG> is the name of your logger. E.g: iShapes.Painter, cafe.ddsi.net, etc.
- <LEVEL> is either VERBOSE, DEBUG, INFO, WARN, ERROR, ASSERT, or SUPPRESS. SUPPRESS will turn off all logging for your tag.
E.g: to enable debug level with cafe.ddsi.net logger on Nexus 7, this command should be run:
-
adb shell setprop log.tag.cafe.ddsi.net DEBUG
You can also get verbose logs on your android device by creating a local.prop file that should be placed in /data/ folder of the Android device (need to be root to create the file). Inside local.prop, put this line:
- log.tag.<YOUR_LOG_TAG>=<LEVEL> (with the replacement described above)
- E.g: to enable debug level with iShapes.Painter logger on Nexus 7, add this line to /data/local.prop file:
-
log.tag.iShapes.Painter=DEBUG
-