Since it's not recommended for your published apps to write logs, the code below will do that for you.
Note: Release_obfuscated is a wished built-in conditional symbol, and until the wish comes true you need to define it manually.
B4X:
#If Release_obfuscated=""
#BridgeLogger: True
#End If
Note: Release_obfuscated is a wished built-in conditional symbol, and until the wish comes true you need to define it manually.