private static void Log(string msg, LogIndent indent = LogIndent.None, string category = "Info")
 {
     if (Math.Abs((int)indent) == 1)
     {
         Trace.IndentLevel += (int)indent;
     }
     if (msg != "")
     {
         Trace.WriteLine("WpfRecap: " + msg, category);
     }
     if (Math.Abs((int)indent) == 2)
     {
         Trace.IndentLevel += ((int)indent) / 2;
     }
 }
 private static void LogError(string msg, LogIndent indent = LogIndent.None)
 {
     Log(msg, indent, "Error");
 }
 private static void LogInfo(string msg, LogIndent indent = LogIndent.None)
 {
     Log(msg, indent, "Info");
 }