Use current app configuration to enable/disable logging

Use the BuildConfig.DEBUG flag to enable logging instead of manually changing a flag.