I was surprised to see my logs showing up in release mode both in Windows and Mac.
In windows it uses
OutputDebugString ((text + "\n").toWideCharPointer());
And in Mac:
std::cerr << text << std::endl;
I run a short search in Stackoverflow and found one way to tackle this (Windows):
#ifdef _DEBUG #define LOGMESSAGE( str ) OutputDebugString( str ); #else #define LOGMESSAGE( str ) #endif