Closed Macarse closed 2 years ago
Would it be possible to add functionality to disable logging by ormlite-android (for security reasons)
In version 5.7 we removed the annoying log statements about missing classes. You also can force the logging backend with LoggerFactory.setLogBackendFactory(LogBackendType.ANDROID);
.
To disable all logs @dazza5000, you can use LoggerFactory.setLogBackendFactory(LogBackendType.NULL);
.
I'll add both of these to the docs. Thanks @Macarse
I just figured out that the android app I work for was using
LocalLog
instead ofLogcat
. (https://nimbledroid.com/play/com.groupon#logger.LocalLog%20static%20initializer)After debugging a bit I noticed that
com.j256.ormlite.android.AndroidLog
was getting removed from the APK by Proguard. To fix this I modified ourproguard.cfg
with:I also added:
To my
Application
code. WhenAndroidLog
is not available, you will see a log statement like this:@j256 it might be interesting mentioning this in the Logging section of the docs.