If using auto flush, or flushing manually on each write of message, I noticed something while debugging in Visual studio, I don't see the data written to file even though I enable AutoFlush = true. The file only gets updated when I stop the debugger. This led me to believe that the data is only being flushed at certain time, or when the program comes to completion.
Or is this a side effect of debugging and in the actual program it will behave differently?
At what point will data get written? Right away, or after some event, or time?
EDIT: I do see the output message in the Debug Output windows of Visual Studio, just not in the file.