Let me suggest a small replacement for the standard journal class (I am the author)
https://github.com/zserge/log
It is backward compatible, so you only need to change your import. Then you can set the minimum log level for your application using Log.level(Log.D) or Log.level(Log.W) , etc., Or you can turn off the logs using Log.useLog(false) . No need to modify existing logging code.
Despite its small size, this registrar works with both the JVM and Android, allows you to skip the "tag" parameter, simplifies the logging of several values, separated by commas or using a format string. So it’s really convenient, easy to carry, and adds ~ 4 kilobytes to your APK size.
zserge
source share