Adding a debug logging macro.
Added logging macro to .pch file so it available to the main target and test target.
Switched warnings to be treated as errors; helps with preventing bugs.