ServiceTraceWriter Class

 

This ITraceWriter implementation formats traces so that they include a request correlation identifier if available. In addition, it allows for traces to be filtered based on their respective "Category".

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Diagnostics
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

System::Object
  System.Web.Http.Tracing::SystemDiagnosticsTraceWriter
    Microsoft.WindowsAzure.Mobile.Service.Diagnostics::ServiceTraceWriter
      Microsoft.WindowsAzure.Mobile.Service.Diagnostics::WebHostTraceWriter

public ref class ServiceTraceWriter : SystemDiagnosticsTraceWriter

NameDescription
System_CAPS_pubmethodServiceTraceWriter()

Initializes a new instance of the ServiceTraceWriter class with default settings.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFormat(TraceRecord^)
System_CAPS_pubmethodFormatDateTime(DateTime)
System_CAPS_pubmethodFormatRequestEnvelope(TraceRecord^)
System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodIsApplicationTrace(String^)

Determines whether a category is a application category by checking that the trace does not start with any of the excluded category prefixes.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetExcludedCategoryPrefixes(IEnumerable<String^>^)

Updates the set of category prefixes to exclude from user logging. Each trace has a "Category" indicating the origin (i.e. the "source") of the trace. An application may use the LogCategories as suggested categories, or simply leave out the category which will use the value provided by the CallerMemberNameAttribute. A log with a category that matches any of the excluded prefixes will not get logged.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTrace(HttpRequestMessage^, String^, TraceLevel, Action<TraceRecord^>^)
System_CAPS_pubmethodTranslateHttpResponseException(TraceRecord^)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: