Beispiel #1
0
 /// <summary>
 /// Creates a new instance of <see cref="ApplicationInsightsLogger"/>
 /// </summary>
 public ApplicationInsightsLogger(string name, TelemetryClient telemetryClient, Func <string, LogLevel, bool> filter, ApplicationInsightsLoggerOptions options)
 {
     this.categoryName    = name;
     this.telemetryClient = telemetryClient;
     this.filter          = filter;
     this.options         = options;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationInsightsLoggerProvider"/> class.
 /// </summary>
 public ApplicationInsightsLoggerProvider(TelemetryClient telemetryClient, Func <string, LogLevel, bool> filter, IOptions <ApplicationInsightsLoggerOptions> options)
 {
     this.telemetryClient = telemetryClient;
     this.filter          = filter;
     this.options         = options.Value;
 }