Exemplo n.º 1
0
 public static void WriteLine(
     string text = null,
     [CallerMemberName] string member = "",
     [CallerFilePath] string file     = "",
     [CallerLineNumber] int line      = 0)
 {
     Trace.WriteLine(ThreadDebug.MakeMessage(text, member, file, line));
 }
Exemplo n.º 2
0
 public static void WriteException(
     Exception exception,
     bool withStackTrace = false,
     [CallerMemberName] string member = "",
     [CallerFilePath] string file     = "",
     [CallerLineNumber] int line      = 0)
 {
     WriteLine(
         ThreadDebug.MakeExceptionText(exception, withStackTrace),
         member,
         file,
         line);
 }