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); } }
public static void WriteError(this TraceType traceType, string format, params object[] args) { traceSource.WriteErrorWithId(traceType.Name, traceType.Id, format, args); ConditionalConsoleWriteLine(format, args); }