Show / Hide Table of Contents

    Method LogTrace

    LogTrace<T>(ILogger, EventIdEnum<T>, Object[])

    Formats and writes a trace log message based on an EventIdEnum<TDerived> instance.
    Declaration
    public static void LogTrace<T>(this ILogger logger, EventIdEnum<T> eventId, params object[] args)where T : EventIdEnum<T>
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.ILogger logger The Microsoft.Extensions.Logging.ILogger instance to write to.
    EventIdEnum<T> eventId The EventIdEnum<TDerived> instance that holds the associated event ID and log message format string.
    Object[] args An object array that contains zero or more objects to format.
    Type Parameters
    Name Description
    T

    LogTrace<T>(ILogger, Exception, EventIdEnum<T>, Object[])

    Formats and writes a trace log message based on an EventIdEnum<TDerived> instance.
    Declaration
    public static void LogTrace<T>(this ILogger logger, Exception exception, EventIdEnum<T> eventId, params object[] args)where T : EventIdEnum<T>
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.ILogger logger The Microsoft.Extensions.Logging.ILogger instance to write to.
    Exception exception The exception to log.
    EventIdEnum<T> eventId The EventIdEnum<TDerived> instance that holds the associated event ID and log message format string.
    Object[] args An object array that contains zero or more objects to format.
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.