Hi!
Here is a small tip about Log Window from VS.
First access your project properties on Visual Studio DEBUG Menu:

On the Properties Pages window go to Debugging and after the last " insert the -log directive as shown on the next image:
I recommend Rama’s documentation about how to setup your own messages or use the simplified “Warning” described as Quick Usage from here.
Enjoy!
