1 write to _logger
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
142_logger = logger ?? throw new ArgumentNullException(nameof(logger));
30 references to _logger
Microsoft.TestPlatform.Extensions.BlameDataCollector (30)
BlameCollector.cs (30)
126[MemberNotNull(nameof(_events), nameof(_dataCollectionSink), nameof(_testSequence), nameof(_testObjectDictionary), nameof(_logger))] 215TPDebug.Assert(_logger != null && _context != null && _dataCollectionSink != null, "Initialize must be called before calling this method"); 235_logger.LogWarning(_context.SessionDataCollectionContext, message); 261Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 267_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Creating hang dump failed with error.", ex); 300_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Collecting hang dump failed with error.", ex); 332TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 335_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 341_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 350TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 361_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, [Constants.TrueConfigurationValue, Constants.FalseConfigurationValue])); 374_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType)))); 381_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 394TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 407_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value)); 421_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(HangDumpType)))); 437_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType)))); 444_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 498TPDebug.Assert(_testSequence != null && _testObjectDictionary != null && _context != null && _dataCollectionSink != null && _logger != null, "Initialize must be called before calling this method"); 526_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.NotGeneratingSequenceFile); 547_logger.LogWarning(args.Context, ex.ToString()); 555_logger.LogWarning(args.Context, ex.ToString()); 567_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 606_logger.LogWarning(args.Context, ex.ToString()); 642TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 647Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 653_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.Message)); 658_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.ToString())); 716TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 732_logger.LogWarning(_context.SessionDataCollectionContext, $"VSTEST_DUMP_PATH is specified. Dump files will be saved in: {dumpPath}, and won't be added to attachments.");