static void OpenLogFile()
{
string fileName = string.Format("{0}-{1}.log", Assembly.GetEntryAssembly().Location, Process.GetCurrentProcess().Id);
try
{
_logFile = new StreamWriter(fileName, false);
}
catch(Exception ex)
{
Console.WriteLine("Failed to open process domain bootstrap log: {0}", ex);
}
}