Welcome! and rules
Joel on Software
Where does Console.Writeline() go?
In many of my projects I use Console.Writeline(string) to output some debug information, for Windows Applications (as opposed to Console Applications).
It goes to the output tab of that little window that also contains the task list. Depending on what you're writing there, you might have to hunt for it because Visual Studio writes its own stuff there, too.
"Now, I'm sort of curious what happens to this output when there is no console to output to."
Brad Wilson (dotnetguy.techieswithcats.com)
Which is why it's a better idea to use Trace.WriteLine or Debug.WriteLine for debug output, because you can conveniently redirect those with a config file.
Brad: So just like an email that never reaches its recipient then. Somewhere out there there's a whole lot of email-messages and Console-output just lying around :)
You could also try log4net. It's really cool. Lets you configure your logging levels at runtime, whole bunch of appenders.
log4net doesn't have some of the performance penalties associated with Trace.WriteLine either.
You can redirect Console.WriteLine with Console.SetOut
Fog Creek Home