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