Class DiagnosticsCommonLoggingBuilderExtensions
Inheritance
System.Object
DiagnosticsCommonLoggingBuilderExtensions
Namespace: Microsoft.Extensions.Logging
Assembly: Copper.Diagnostics.Common.dll
Syntax
public static class DiagnosticsCommonLoggingBuilderExtensions
Methods
View SourceAddCopperLogging(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(). |