Log to Microsoft Visual Studio Output window Add following to your code: #include "dstream.h" and you can do your logging now: dout << "test" << endl;