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))] 216TPDebug.Assert(_logger != null && _context != null && _dataCollectionSink != null, "Initialize must be called before calling this method"); 236_logger.LogWarning(_context.SessionDataCollectionContext, message); 266Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 272_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Creating hang dump failed with error.", ex); 305_logger.LogError(_context.SessionDataCollectionContext, $"Blame: Collecting hang dump failed with error.", ex); 337TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 340_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 346_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 355TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 366_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, [Constants.TrueConfigurationValue, Constants.FalseConfigurationValue])); 379_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType)))); 386_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 399TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 412_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.UnexpectedValueForInactivityTimespanValue, attribute.Value)); 426_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(HangDumpType)))); 442_logger.LogWarning(_context.SessionDataCollectionContext, FormatBlameParameterValueIncorrectMessage(attribute, Enum.GetNames(typeof(CrashDumpType)))); 449_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.Name)); 503TPDebug.Assert(_testSequence != null && _testObjectDictionary != null && _context != null && _dataCollectionSink != null && _logger != null, "Initialize must be called before calling this method"); 531_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.NotGeneratingSequenceFile); 552_logger.LogWarning(args.Context, ex.ToString()); 560_logger.LogWarning(args.Context, ex.ToString()); 572_logger.LogWarning(_context.SessionDataCollectionContext, Resources.Resources.MonitorPostmortemDebuggerInvalidDumpDirectoryPathParameter); 611_logger.LogWarning(args.Context, ex.ToString()); 647TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 652Action<string> logWarning = m => _logger.LogWarning(_context.SessionDataCollectionContext, m); 658_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.Message)); 663_logger.LogWarning(args.Context, string.Format(CultureInfo.CurrentCulture, Resources.Resources.ProcDumpCouldNotStart, e.ToString())); 724TPDebug.Assert(_logger != null && _context != null, "Initialize must be called before calling this method"); 740_logger.LogWarning(_context.SessionDataCollectionContext, $"VSTEST_DUMP_PATH is specified. Dump files will be saved in: {dumpPath}, and won't be added to attachments.");