예제 #1
0
 public void WriteError(TraceType traceType, string format, params object[] args)
 {
     if (!string.IsNullOrEmpty(this.TraceId))
     {
         TraceSource.WriteErrorWithId(traceType.Name, this.TraceId, format, args);
     }
     else
     {
         TraceSource.WriteError(traceType.Name, format, args);
     }
 }
예제 #2
0
 public static void WriteError(this TraceType traceType, string format, params object[] args)
 {
     traceSource.WriteErrorWithId(traceType.Name, traceType.Id, format, args);
     ConditionalConsoleWriteLine(format, args);
 }