Exemplo n.º 1
0
 public ApplicationInsightsLogger(TelemetryClient client, string categoryName, ApplicationInsightsLoggerOptions loggerOptions)
 {
     _telemetryClient = client;
     _loggerOptions   = loggerOptions;
     _categoryName    = categoryName ?? DefaultCategoryName;
     _isUserFunction  = LogCategories.IsFunctionUserCategory(categoryName);
 }
Exemplo n.º 2
0
 public ApplicationInsightsLoggerProvider(TelemetryClient client, IOptions <ApplicationInsightsLoggerOptions> loggerOptions)
 {
     _client        = client ?? throw new ArgumentNullException(nameof(client));
     _loggerOptions = loggerOptions?.Value ?? throw new ArgumentNullException(nameof(loggerOptions));
 }