I suggest looking into Tracing. It's very powerful and allows you to log to
files, xml, event log and more. I wrote code that makes it even more powerful
that will appear in the next update of my open source assembly located at
//set those values to config file settings
popTextFile =true;//better to read from config file
generateTempFil e =true;//better to read from config file
if (popTextFile || generateTempFil e )
{
string fileName = WriteToTempFile (string.Empty, msg);
if (popTextFile)
{
System.Diagnost ics.Process.Sta rt(fileName);
}
else
{
Console.WriteLi ne(fileName);
}
}
}
public string WriteToTempFile (string prefix, string toWrite)
{
Comment