Show / Hide Table of Contents

    Class DiagnosticsCommonLoggingBuilderExtensions

    extensions.

    Inheritance
    System.Object
    DiagnosticsCommonLoggingBuilderExtensions
    Namespace: Microsoft.Extensions.Logging
    Assembly: Copper.Diagnostics.Common.dll
    Syntax
    public static class DiagnosticsCommonLoggingBuilderExtensions

    Methods

    View Source

    AddCopperLogging(ILoggingBuilder)

    Adds Copper logging.

    Declaration
    public static ILoggingBuilder AddCopperLogging(this ILoggingBuilder loggingBuilder)
    Parameters
    Type Name Description
    ILoggingBuilder loggingBuilder

    The logging builder.

    Returns
    Type Description
    ILoggingBuilder
    Exceptions
    Type Condition
    System.InvalidOperationException

    Application Insights not was detected. Cannot extend install Copper Diagnostics which is based on Application Insights. Please install Application Insights using .AddApplicationInsights().

    • View Source
    Back to top Generated by DocFX