ITraceWriter Interface

Represents the trace writer.

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Interface ITraceWriter
'Usage
Dim instance As ITraceWriter
public interface ITraceWriter
public interface class ITraceWriter
type ITraceWriter =  interface end
public interface ITraceWriter

The ITraceWriter type exposes the following members.

Methods

  Name Description
Public method Trace Invokes the specified traceAction to allow setting values in a new TraceRecord if and only if tracing is permitted at the given category and level.

Top

Extension Methods

  Name Description
Public Extension Method Debug(HttpRequestMessage, String, Exception) Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension Method Debug(HttpRequestMessage, String, String, Object[]) Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Debug(HttpRequestMessage, String, Exception, String, Object[]) Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Error(HttpRequestMessage, String, Exception) Overloaded. Displays an error message in the list with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension Method Error(HttpRequestMessage, String, String, Object[]) Overloaded. Displays an error message in the list with the specified writer, request, category, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Error(HttpRequestMessage, String, Exception, String, Object[]) Overloaded. Displays an error message in the list with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Fatal(HttpRequestMessage, String, Exception) Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension Method Fatal(HttpRequestMessage, String, String, Object[]) Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Fatal(HttpRequestMessage, String, Exception, String, Object[]) Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension Method Info(HttpRequestMessage, String, Exception) Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension Method Info(HttpRequestMessage, String, String, Object[]) Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension Method Info(HttpRequestMessage, String, Exception, String, Object[]) Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension Method Trace(HttpRequestMessage, String, TraceLevel, Exception) Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension Method Trace(HttpRequestMessage, String, TraceLevel, String, Object[]) Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension Method Trace(HttpRequestMessage, String, TraceLevel, Exception, String, Object[]) Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension Method TraceBeginEnd Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension Method TraceBeginEndAsync(HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task>, Action<TraceRecord>, Action<TraceRecord>) Overloaded. Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension Method TraceBeginEndAsync<TResult>(HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task<TResult>>, Action<TraceRecord, TResult>, Action<TraceRecord>) Overloaded. Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension Method Warn(HttpRequestMessage, String, Exception) Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)
Public Extension Method Warn(HttpRequestMessage, String, String, Object[]) Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)
Public Extension Method Warn(HttpRequestMessage, String, Exception, String, Object[]) Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)

Top

See Also

Reference

System.Web.Http.Tracing Namespace