Migrate debug logging to use BuildConfig