98 references to Diagnostic
Microsoft.Build (21)
BackEnd\Components\Logging\LoggingService.cs (1)
1061
LoggerVerbosity.
Diagnostic
); /*Not used, but the spirit of the logger is to forward everything so this is the most appropriate verbosity */
Instance\ProjectInstance.cs (1)
2706
loggers.Any(logger => logger.Verbosity == LoggerVerbosity.
Diagnostic
) ||
Logging\BaseConsoleLogger.cs (4)
459
if (Verbosity == LoggerVerbosity.
Diagnostic
&& showItemAndPropertyList)
482
if (Verbosity == LoggerVerbosity.
Diagnostic
|| showEnvironment)
554
if (Verbosity != LoggerVerbosity.
Diagnostic
|| !showItemAndPropertyList || itemTypes.Count == 0)
902
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
))
Logging\BinaryLogger\BinaryLogger.cs (1)
143
public LoggerVerbosity Verbosity { get; set; } = LoggerVerbosity.
Diagnostic
;
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
261
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
))
Logging\ParallelLogger\ParallelConsoleLogger.cs (9)
543
if (Verbosity == LoggerVerbosity.
Diagnostic
&& showItemAndPropertyList)
911
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId)
949
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId)
993
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId)
1195
if (Verbosity == LoggerVerbosity.
Diagnostic
&& showItemAndPropertyList)
1282
if ((IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId)
1340
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId)
1451
if (IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
) || _showEventId)
1612
if (_showTimeStamp || IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
))
Logging\SerialConsoleLogger.cs (4)
270
if (Verbosity == LoggerVerbosity.
Diagnostic
&& showItemAndPropertyList)
381
|| Verbosity == LoggerVerbosity.
Diagnostic
)
575
if (Verbosity == LoggerVerbosity.
Diagnostic
&& showItemAndPropertyList)
674
if (this.Verbosity == LoggerVerbosity.
Diagnostic
)
Microsoft.Build.CommandLine.UnitTests (3)
TerminalLogger_Tests.cs (1)
545
_terminallogger.Verbosity = LoggerVerbosity.
Diagnostic
;
XMake_Tests.cs (2)
644
MSBuildApp.ProcessVerbositySwitch("diag").ShouldBe(LoggerVerbosity.
Diagnostic
);
645
MSBuildApp.ProcessVerbositySwitch("DIAGNOSTIC").ShouldBe(LoggerVerbosity.
Diagnostic
);
Microsoft.Build.Engine.UnitTests (51)
BackEnd\LoggingService_Tests.cs (3)
1024
_initializedService.RegisterLogger(new ConsoleLogger(LoggerVerbosity.
Diagnostic
));
1039
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(LoggerVerbosity.
Diagnostic
));
1158
LoggerVerbosity.
Diagnostic
); /*Not used, but the spirit of the logger is to forward everything so this is the most appropriate verbosity */
BackEnd\TaskBuilder_Tests.cs (3)
594
MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.
Diagnostic
);
618
MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.
Diagnostic
);
644
MockLogger logger = ObjectModelHelpers.BuildProjectExpectSuccess(projectContents, _testOutput, LoggerVerbosity.
Diagnostic
);
BinaryLogger_Tests.cs (4)
113
var serialFromBuild = new SerialConsoleLogger(Framework.LoggerVerbosity.
Diagnostic
, t => serialFromBuildText.Append(t), colorSet: null, colorReset: null);
117
var parallelFromBuild = new ParallelConsoleLogger(Framework.LoggerVerbosity.
Diagnostic
, t => parallelFromBuildText.Append(t), colorSet: null, colorReset: null);
161
var serialFromPlayback = new SerialConsoleLogger(Framework.LoggerVerbosity.
Diagnostic
, t => serialFromPlaybackText.Append(t), colorSet: null, colorReset: null);
165
var parallelFromPlayback = new ParallelConsoleLogger(Framework.LoggerVerbosity.
Diagnostic
, t => parallelFromPlaybackText.Append(t), colorSet: null, colorReset: null);
ConfigureableForwardingLogger_Tests.cs (2)
64
[InlineData(LoggerVerbosity.
Diagnostic
)]
147
case LoggerVerbosity.
Diagnostic
:
ConsoleLogger_Tests.cs (34)
326
ConsoleLogger logger = new ConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
457
ConsoleLogger L = new ConsoleLogger(LoggerVerbosity.
Diagnostic
,
486
ConsoleLogger L = new ConsoleLogger(LoggerVerbosity.
Diagnostic
,
541
[InlineData(LoggerVerbosity.Quiet, LoggerVerbosity.
Diagnostic
, false)]
547
[InlineData(LoggerVerbosity.Minimal, LoggerVerbosity.
Diagnostic
, false)]
553
[InlineData(LoggerVerbosity.Normal, LoggerVerbosity.
Diagnostic
, false)]
559
[InlineData(LoggerVerbosity.Detailed, LoggerVerbosity.
Diagnostic
, false)]
561
[InlineData(LoggerVerbosity.
Diagnostic
, LoggerVerbosity.Quiet, true)]
562
[InlineData(LoggerVerbosity.
Diagnostic
, LoggerVerbosity.Minimal, true)]
563
[InlineData(LoggerVerbosity.
Diagnostic
, LoggerVerbosity.Normal, true)]
564
[InlineData(LoggerVerbosity.
Diagnostic
, LoggerVerbosity.Detailed, true)]
565
[InlineData(LoggerVerbosity.
Diagnostic
, LoggerVerbosity.
Diagnostic
, true)]
593
[InlineData(LoggerVerbosity.
Diagnostic
, MessageImportance.Low, true)]
594
[InlineData(LoggerVerbosity.
Diagnostic
, MessageImportance.Normal, true)]
595
[InlineData(LoggerVerbosity.
Diagnostic
, MessageImportance.High, true)]
615
if (i == 2 && loggerVerbosity == LoggerVerbosity.
Diagnostic
)
684
ConsoleLogger logger = new ConsoleLogger(LoggerVerbosity.
Diagnostic
, console.Write, console.SetColor, console.ResetColor);
1387
ConsoleLogger L = new ConsoleLogger(LoggerVerbosity.
Diagnostic
,
1473
SerialConsoleLogger cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1478
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1551
SerialConsoleLogger cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1555
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1609
SerialConsoleLogger cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1616
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1760
cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1764
cl = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1801
var cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1807
var cl = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1828
SerialConsoleLogger cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1833
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1864
SerialConsoleLogger cl = new SerialConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1871
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
1893
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(LoggerVerbosity.
Diagnostic
, sc.Write, null, null);
Evaluation\Evaluator_Tests.cs (2)
5022
logger.Verbosity = LoggerVerbosity.
Diagnostic
;
5062
Verbosity = LoggerVerbosity.
Diagnostic
,
FileLogger_Tests.cs (3)
143
LoggerVerbosity.
Diagnostic
, LoggerVerbosity.
Diagnostic
};
393
[InlineData(LoggerVerbosity.
Diagnostic
, true)]
Microsoft.Build.Framework (1)
Logging\LoggerParametersHelper.cs (1)
44
verbosity = LoggerVerbosity.
Diagnostic
;
Microsoft.Build.Utilities.UnitTests (12)
Logger_Tests.cs (12)
40
EmptyLogger logger = new EmptyLogger(LoggerVerbosity.
Diagnostic
);
43
Assert.Equal(LoggerVerbosity.
Diagnostic
, logger.Verbosity);
56
new EmptyLogger(LoggerVerbosity.Quiet).IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
).ShouldBeFalse();
62
new EmptyLogger(LoggerVerbosity.Minimal).IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
).ShouldBeFalse();
68
new EmptyLogger(LoggerVerbosity.Normal).IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
).ShouldBeFalse();
74
new EmptyLogger(LoggerVerbosity.Detailed).IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
).ShouldBeFalse();
76
new EmptyLogger(LoggerVerbosity.
Diagnostic
).IsVerbosityAtLeast(LoggerVerbosity.Quiet).ShouldBeTrue();
77
new EmptyLogger(LoggerVerbosity.
Diagnostic
).IsVerbosityAtLeast(LoggerVerbosity.Minimal).ShouldBeTrue();
78
new EmptyLogger(LoggerVerbosity.
Diagnostic
).IsVerbosityAtLeast(LoggerVerbosity.Normal).ShouldBeTrue();
79
new EmptyLogger(LoggerVerbosity.
Diagnostic
).IsVerbosityAtLeast(LoggerVerbosity.Detailed).ShouldBeTrue();
80
new EmptyLogger(LoggerVerbosity.
Diagnostic
).IsVerbosityAtLeast(LoggerVerbosity.
Diagnostic
).ShouldBeTrue();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
199
LogTaskInputs = _msbuildLogger is not null && _msbuildLogger.Verbosity == LoggerVerbosity.
Diagnostic
Microsoft.DotNet.ArcadeLogging (3)
PipelinesLogger.cs (3)
65
if (Verbosity == LoggerVerbosity.
Diagnostic
)
260
if (Verbosity == LoggerVerbosity.
Diagnostic
)
271
if(Verbosity != LoggerVerbosity.
Diagnostic
)
MSBuild (6)
XMake.cs (6)
1350
bool logTaskInputs = verbosity == LoggerVerbosity.
Diagnostic
|| isBuildCheckEnabled;
2766
verbosity = LoggerVerbosity.
Diagnostic
;
2773
else if (verbosity == LoggerVerbosity.
Diagnostic
)
2778
if (originalVerbosity == LoggerVerbosity.
Diagnostic
)
3957
verbosity = LoggerVerbosity.
Diagnostic
;
4215
verbosity = LoggerVerbosity.
Diagnostic
;