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".
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
System.Web.Http.Tracing.SystemDiagnosticsTraceWriter
Microsoft.WindowsAzure.Mobile.Service.Diagnostics.ServiceTraceWriter
Microsoft.WindowsAzure.Mobile.Service.Diagnostics.WebHostTraceWriter
| Name | Description | |
|---|---|---|
![]() | ServiceTraceWriter() | Initializes a new instance of the ServiceTraceWriter class with default settings. |
| Name | Description | |
|---|---|---|
![]() | IsVerbose | (Inherited from SystemDiagnosticsTraceWriter.) |
![]() | MinimumLevel | (Inherited from SystemDiagnosticsTraceWriter.) |
![]() | TraceSource | (Inherited from SystemDiagnosticsTraceWriter.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | Format(TraceRecord) | (Overrides SystemDiagnosticsTraceWriter.Format(TraceRecord).) |
![]() | FormatDateTime(DateTime) | (Inherited from SystemDiagnosticsTraceWriter.) |
![]() | FormatRequestEnvelope(TraceRecord) | (Inherited from SystemDiagnosticsTraceWriter.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsApplicationTrace(String) | Determines whether a category is a application category by checking that the trace does not start with any of the excluded category prefixes. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | SetExcludedCategoryPrefixes(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. |
![]() | ToString() | (Inherited from Object.) |
![]() | Trace(HttpRequestMessage, String, TraceLevel, Action<TraceRecord>) | |
![]() | TranslateHttpResponseException(TraceRecord) | (Inherited from SystemDiagnosticsTraceWriter.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=csharp)
.jpeg?cs-save-lang=1&cs-lang=csharp)
.jpeg?cs-save-lang=1&cs-lang=csharp)