System.Diagnostics.TracerSourceExtensions.TraceError C# (CSharp) Method

TraceError() public static method

Traces an event of type TraceEventType.Error with the given exception, using the Exception.Message as the trace event message.
public static TraceError ( this source, Exception exception ) : void
source this
exception Exception
return void
		public static void TraceError(this ITraceSource source, Exception exception)
		{
			Guard.NotNull(() => source, source);

			source.Trace(new ExceptionTraceEvent(TraceEventType.Error, 0, exception));
		}

Same methods

TracerSourceExtensions::TraceError ( this source, Exception exception, string format ) : void
TracerSourceExtensions::TraceError ( this source, string format ) : void