Show / Hide Table of Contents

    Class LogEventFormatter

    The log event formatter

    Inheritance
    Object
    LogEventFormatter
    Implements
    ILogEventFormatter
    Inherited Members
    Object.ToString()
    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
    public class LogEventFormatter : ILogEventFormatter

    Constructors

    LogEventFormatter(LogEventFormatterFlags, String, String)

    Initializes a new instance of the LogEventFormatter class.

    Declaration
    public LogEventFormatter(LogEventFormatterFlags flags = LogEventFormatterFlags.ForDefault, string inlineSeparator = " ", string timestampFormat = "yyyy-MM-ddTHH:mm:ss.ffffZ")
    Parameters
    Type Name Description
    LogEventFormatterFlags flags

    The formatter flags to control which will be shown in output message.

    String inlineSeparator

    The inline separator for logging fields

    String timestampFormat

    The default timestamp format

    Fields

    DefaultTimestampFormat

    The default timestamp format.

    Declaration
    public const string DefaultTimestampFormat = "yyyy-MM-ddTHH:mm:ss.ffffZ"
    Field Value
    Type Description
    String

    Methods

    Format(LogEvent)

    Format the log event.

    Declaration
    public string Format(LogEvent logEvent)
    Parameters
    Type Name Description
    LogEvent logEvent

    The log event

    Returns
    Type Description
    String

    The formatted text.

    Implements

    ILogEventFormatter

    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.