Class ClientEtwLogger
Logger for client that publishes to ETW.
Implements
Inherited Members
Namespace: Microsoft.Graph.Communications.Common.Telemetry
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
[EventSource(Name = "Microsoft-Graph-Telemetry-Client")]
public class ClientEtwLogger : EventSource, IDisposable
Constructors
ClientEtwLogger(IGraphLogger)
Initializes a new instance of the ClientEtwLogger class.
Declaration
public ClientEtwLogger(IGraphLogger logger)
Parameters
Type | Name | Description |
---|---|---|
IGraphLogger | logger | The logger. |
Methods
HttpTrace(Guid, String, String, String, String, String, String, String, Int32, String, String, String, String, String, String)
Trace for client's http calls.
Declaration
[Event(100, Level = EventLevel.Informational, Message = "{5}")]
public void HttpTrace(Guid correlationId, string component, string traceLevel, string url, string transactionDirection, string message, string appName, string appId, int mtid, string callingLine, string traceType, string headers, string method, string responseCode, string responseTime)
Parameters
Type | Name | Description |
---|---|---|
Guid | correlationId | The correlation identifier. |
String | component | The component. |
String | traceLevel | The trace level. |
String | url | The URL for the request. |
String | transactionDirection | The direction of the request this request/response corresponds to. |
String | message | The body for the request/response. |
String | appName | Name of the application. |
String | appId | The application identifier. |
Int32 | mtid | The managed tid. |
String | callingLine | The line in which log is produced. |
String | traceType | Denote whether this is request/response. |
String | headers | The headers. |
String | method | The method for the request. |
String | responseCode | The response code from response. |
String | responseTime | Time taken to process the request. |
Trace(Guid, String, String, String, String, String, Int32, String)
Trace for client's normal trace calls.
Declaration
[Event(101, Level = EventLevel.Informational, Message = "{3}")]
public void Trace(Guid correlationId, string component, string traceLevel, string message, string appName, string appId, int mtid, string callingLine)
Parameters
Type | Name | Description |
---|---|---|
Guid | correlationId | The correlation identifier. |
String | component | The component. |
String | traceLevel | The trace level. |
String | message | The message. |
String | appName | Name of the application. |
String | appId | The application identifier. |
Int32 | mtid | The managed tid. |
String | callingLine | The line in which log is produced. |