Show / Hide Table of Contents

    Class ClientEtwLogger

    Logger for client that publishes to ETW.

    Inheritance
    Object
    EventSource
    ClientEtwLogger
    Implements
    IDisposable
    Inherited Members
    EventSource.IsEnabled()
    EventSource.IsEnabled(EventLevel, EventKeywords)
    EventSource.IsEnabled(EventLevel, EventKeywords, EventChannel)
    EventSource.GetGuid(Type)
    EventSource.GetName(Type)
    EventSource.GenerateManifest(Type, String)
    EventSource.GenerateManifest(Type, String, EventManifestOptions)
    EventSource.GetSources()
    EventSource.SendCommand(EventSource, EventCommand, IDictionary<String, String>)
    EventSource.SetCurrentThreadActivityId(Guid)
    EventSource.SetCurrentThreadActivityId(Guid, Guid)
    EventSource.GetTrait(String)
    EventSource.ToString()
    EventSource.OnEventCommand(EventCommandEventArgs)
    EventSource.WriteEvent(Int32)
    EventSource.WriteEvent(Int32, Int32)
    EventSource.WriteEvent(Int32, Int32, Int32)
    EventSource.WriteEvent(Int32, Int32, Int32, Int32)
    EventSource.WriteEvent(Int32, Int64)
    EventSource.WriteEvent(Int32, Int64, Int64)
    EventSource.WriteEvent(Int32, Int64, Int64, Int64)
    EventSource.WriteEvent(Int32, String)
    EventSource.WriteEvent(Int32, String, String)
    EventSource.WriteEvent(Int32, String, String, String)
    EventSource.WriteEvent(Int32, String, Int32)
    EventSource.WriteEvent(Int32, String, Int32, Int32)
    EventSource.WriteEvent(Int32, String, Int64)
    EventSource.WriteEvent(Int32, Int64, String)
    EventSource.WriteEvent(Int32, Int32, String)
    EventSource.WriteEvent(Int32, Byte[])
    EventSource.WriteEvent(Int32, Int64, Byte[])
    EventSource.WriteEventCore(Int32, Int32, EventSource.EventData*)
    EventSource.WriteEventWithRelatedActivityIdCore(Int32, Guid*, Int32, EventSource.EventData*)
    EventSource.WriteEvent(Int32, Object[])
    EventSource.WriteEventWithRelatedActivityId(Int32, Guid, Object[])
    EventSource.Dispose()
    EventSource.Dispose(Boolean)
    EventSource.Write(String)
    EventSource.Write(String, EventSourceOptions)
    EventSource.Write<T>(String, T)
    EventSource.Write<T>(String, EventSourceOptions, T)
    EventSource.Write<T>(String, EventSourceOptions, T)
    EventSource.Write<T>(String, EventSourceOptions, Guid, Guid, T)
    EventSource.Name
    EventSource.Guid
    EventSource.Settings
    EventSource.CurrentThreadActivityId
    EventSource.ConstructionException
    EventSource.EventCommandExecuted
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Implements

    System.IDisposable

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.