Games Question: How to disable logs in release mode.

Discussion in 'Game Development' started by JanG, Aug 28, 2018.

  1. JanG

    JanG Member Licensed 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!
  2. sorex

    sorex Expert Licensed 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

    #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
  3. Erel

    Erel Administrator Staff Member Licensed 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.
    JanG likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice