Show / Hide Table of Contents

    Class ApplicationInsightsLoggerProviderDecorator

    A logger provider decorator that maintains an instance of ApplicationInsightsLoggerDecorator.

    Inheritance
    System.Object
    ApplicationInsightsLoggerProviderDecorator
    Namespace: Copper.Diagnostics.Common.Logging
    Assembly: Copper.Diagnostics.Common.dll
    Syntax
    public sealed class ApplicationInsightsLoggerProviderDecorator : ILoggerProvider

    Constructors

    View Source

    ApplicationInsightsLoggerProviderDecorator(IOptions<TelemetryConfiguration>, ApplicationInsightsLoggerProvider)

    Initializes a new instance of the ApplicationInsightsLoggerProviderDecorator class.

    Declaration
    public ApplicationInsightsLoggerProviderDecorator(IOptions<TelemetryConfiguration> telemetryConfigurationOptions, ApplicationInsightsLoggerProvider applicationInsightsLoggerProvider)
    Parameters
    Type Name Description
    IOptions<TelemetryConfiguration> telemetryConfigurationOptions

    The telemetry configuration options.

    ApplicationInsightsLoggerProvider applicationInsightsLoggerProvider

    The application insights logger provider.

    Exceptions
    Type Condition
    System.ArgumentNullException

    telemetryConfigurationOptions

    Methods

    View Source

    CreateLogger(String)

    Creates a new ILogger instance.

    Declaration
    public ILogger CreateLogger(string categoryName)
    Parameters
    Type Name Description
    System.String categoryName

    The category name for messages produced by the logger.

    Returns
    Type Description
    ILogger

    The instance of ILogger that was created.

    View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    • View Source
    Back to top Generated by DocFX