This will compile out the logTrace and logDebug when NDEBUG is defined. If you do not see logTrace or logDebug messages then your build has NDEBUG defined.
#ifndef NDEBUG
Since NDEBUG is defined you could change this to an #ifdef to include logDebug and logTrace instead. Or this line and to corresponding #endif line can be removed.