public override string ToString()
{
// TODO: Localize this with .resx
StringBuilder sb = new StringBuilder();
sb.Append("Application: ");
sb.AppendLine(Application);
sb.Append("Namespace: ");
sb.AppendLine(Namespace);
if (!String.IsNullOrEmpty(Context)) {
sb.Append("Context: ");
sb.AppendLine(Context);
}
if (!String.IsNullOrEmpty(Thread)) {
sb.Append("Thread: ");
sb.AppendLine(Thread);
}
sb.Append("Message: ");
sb.AppendLine(Message);
if (!String.IsNullOrEmpty(Exception)) {
sb.Append("Exception: ");
sb.AppendLine(Exception);
}
return sb.ToString();
}