示例#1
0
        public void Warning(Exception exception, IDictionary <string, string> scopeProperties = null, IDictionary <string, string> properties = null, IDictionary <string, double> metrics = null)
        {
            telemetryScopedProperties.SetScopeProperties(scopeProperties);
            telemetryLogger.Warning(exception, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics);

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