Games Question: How to disable logs in release mode.

JanG

Member
Licensed User
Longtime User
I read "You can add STATS to the build configuration symbols.", but can you please give a little bit more information how to disable the logs?

Thank you!
 

sorex

Expert
Licensed User
Longtime User
I think he means adding a stats conditional symbol and using a stats build that displays the logs.

Project > Build configurations > Create new > enter Stats in the textfields > press ok

then you can use

B4X:
#if stats
 log("stats info")
#end if

you can select the stats build with the drop down next to the debug/release one.


if you just want to disable the logs in release mode as mentioned in the thread title you don't have to do the steps above. you can use #debug & #release already
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If you add STATS to the build configuration then you will see very rapid timing messages. You just need to remove the symbol from the build configuration to disable those.
You don't need to worry about the other logs that appear from time to time. They will not have any impact on performance.

It is a good idea to disable #BridgeLogger before releasing your app to Google Play.
 
Top