According to the documentation there are only two ways to change the default logging level from INFO to lower levels (such as DEBUG):
setprop log.tag.<YOUR_LOG_TAG> <LEVEL>
, orlog.tag.<YOUR_LOG_TAG>=<LEVEL>
in /data/local.prop.Is it possible to bundle the logging configuration within the application? I'm looking for the equivalent of logging.properties
or logback.xml
, configuration files that are bundled with the application and alter the logging behavior at load-time. The goal is to avoid manually configuring each device that the application will run on.
I ended up using logback-android. I will leave this question open a bit longer in case someone comes up with a better solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With