private static void GetStandardErrorReportingProperties(StringBuilder bldr, bool appendLog)
{
bldr.AppendLine();
bldr.AppendLine("=Error Reporting Properties=");
foreach (string label in ErrorReport.Properties.Keys)
{
bldr.Append(label);
bldr.Append(": ");
bldr.AppendLine(ErrorReport.Properties[label]);
}
if (appendLog || Logger.Singleton == null)
{
bldr.AppendLine();
bldr.AppendLine("=Log=");
try
{
bldr.Append(Logger.LogText);
}
catch (Exception err)
{
//We have more than one report of dieing while logging an exception.
bldr.AppendLine("****Could not read from log: " + err.Message);
}
}
}