public void Error(Exception exception, IDictionary <string, string> scopeProperties = null, IDictionary <string, string> properties = null, IDictionary <string, double> metrics = null) { telemetryScopedProperties.SetScopeProperties(scopeProperties); telemetryLogger.Error(exception, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics); if (RouteBinding?.Logging?.ScopedStreamLoggers?.Count > 0) { foreach (var scopedStreamLogger in RouteBinding?.Logging.ScopedStreamLoggers.Where(l => l.LogError)) { telemetryScopedStreamLogger.Error(scopedStreamLogger, exception, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics); } } }
public void Error(Exception exception, IDictionary <string, string> scopeProperties = null, IDictionary <string, string> properties = null, IDictionary <string, double> metrics = null) { telemetryScopedProperties.SetScopeProperties(scopeProperties); telemetryLogger.Error(exception, properties, metrics); tenantTrackLogger.Error(exception, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics); }