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
))]
216
TPDebug.Assert(
_logger
!= null && _context != null && _dataCollectionSink != null, "Initialize must be called before calling this method");
236
_logger
.LogWarning(_context.SessionDataCollectionContext, message);
266
Action<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);
337
TPDebug.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);
355
TPDebug.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));
399
TPDebug.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));
503
TPDebug.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());
647
TPDebug.Assert(
_logger
!= null && _context != null, "Initialize must be called before calling this method");
652
Action<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()));
724
TPDebug.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.");