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