예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 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);
 }