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 SourceApplicationInsightsLoggerProviderDecorator(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 SourceCreateLogger(String)
Creates a new
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 |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()