483 references to LoggerVerbosity
Microsoft.Build (119)
BackEnd\BuildManager\BuildManager.cs (4)
2935
verbosity:
LoggerVerbosity
.Quiet);
3042
verbosity:
LoggerVerbosity
.Quiet);
3266
public
LoggerVerbosity
Verbosity
3268
get =>
LoggerVerbosity
.Normal;
BackEnd\Components\Logging\CentralForwardingLogger.cs (1)
40
public
LoggerVerbosity
Verbosity
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 */
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
31
public
LoggerVerbosity
Verbosity { get; set; }
BuildCheck\Infrastructure\BuildCheckForwardingLogger.cs (2)
25
public
LoggerVerbosity
Verbosity { get =>
LoggerVerbosity
.Quiet; set { return; } }
Definition\ProjectCollection.cs (1)
2107
public
LoggerVerbosity
Verbosity
Instance\ProjectInstance.cs (1)
2706
loggers.Any(logger => logger.Verbosity ==
LoggerVerbosity
.Diagnostic) ||
Logging\BaseConsoleLogger.cs (19)
38
public
LoggerVerbosity
Verbosity { get; set; } =
LoggerVerbosity
.Normal;
153
int indentLevel = IsVerbosityAtLeast(
LoggerVerbosity
.Normal) ? this.currentIndentLevel : 0;
172
int indentLevel = IsVerbosityAtLeast(
LoggerVerbosity
.Normal) ? this.currentIndentLevel : 0;
246
int indentLevel = IsVerbosityAtLeast(
LoggerVerbosity
.Normal) ? currentIndentLevel : 0;
272
internal bool IsVerbosityAtLeast(
LoggerVerbosity
checkVerbosity) => Verbosity >= checkVerbosity;
280
internal static
LoggerVerbosity
ImportanceToMinimumVerbosity(MessageImportance importance, out bool lightenText)
286
return
LoggerVerbosity
.Minimal;
289
return
LoggerVerbosity
.Normal;
292
return
LoggerVerbosity
.Detailed;
297
return
LoggerVerbosity
.Detailed;
409
internal void InitializeConsoleMethods(
LoggerVerbosity
logverbosity, WriteHandler logwriter, ColorSetter colorSet, ColorResetter colorReset)
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))
925
if (ShowSummary == null && IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1031
if (LoggerParametersHelper.TryParseVerbosityParameter(parameterValue, out
LoggerVerbosity
? verbosity))
1033
Verbosity = (
LoggerVerbosity
)verbosity;
Logging\BinaryLogger\BinaryLogger.cs (2)
143
public
LoggerVerbosity
Verbosity { get; set; } =
LoggerVerbosity
.Diagnostic;
Logging\ConsoleLogger.cs (5)
51
private
LoggerVerbosity
_verbosity;
65
: this(
LoggerVerbosity
.Normal)
75
public ConsoleLogger(
LoggerVerbosity
verbosity) :
89
LoggerVerbosity
verbosity,
207
public
LoggerVerbosity
Verbosity
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (9)
29
public
LoggerVerbosity
Verbosity
228
if (IsVerbosityAtLeast(
LoggerVerbosity
.Quiet))
234
if (IsVerbosityAtLeast(
LoggerVerbosity
.Minimal))
240
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
252
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
261
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic))
379
private bool IsVerbosityAtLeast(
LoggerVerbosity
checkVerbosity)
390
private
LoggerVerbosity
_verbosity =
LoggerVerbosity
.Normal;
Logging\DistributedLoggers\DistributedFileLogger.cs (5)
115
_nodeFileLogger.Verbosity =
LoggerVerbosity
.Detailed;
183
/// Gets or sets <see cref="
LoggerVerbosity
"/>. This is currently hard-coded as <see cref="
LoggerVerbosity
.Detailed"/>.
185
public
LoggerVerbosity
Verbosity
190
return
LoggerVerbosity
.Detailed;
Logging\FileLogger.cs (2)
37
LoggerVerbosity
.Normal,
95
if (!SkipProjectStartedText && Verbosity >=
LoggerVerbosity
.Normal)
Logging\LoggerDescription.cs (5)
37
LoggerVerbosity
verbosity) : this(loggerClassName,
54
LoggerVerbosity
verbosity,
138
public
LoggerVerbosity
Verbosity
294
private
LoggerVerbosity
_verbosity;
338
_verbosity = (
LoggerVerbosity
)reader.ReadInt32();
Logging\NullCentralLogger.cs (2)
19
private
LoggerVerbosity
_verbosity;
23
public
LoggerVerbosity
Verbosity
Logging\ParallelLogger\ParallelConsoleLogger.cs (33)
37
: this(
LoggerVerbosity
.Normal)
46
public ParallelConsoleLogger(
LoggerVerbosity
verbosity)
62
LoggerVerbosity
verbosity,
229
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
255
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
297
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
518
_buildEventManager.AddProjectStartedEvent(e, _showTimeStamp || IsVerbosityAtLeast(
LoggerVerbosity
.Detailed));
543
if (Verbosity ==
LoggerVerbosity
.Diagnostic && showItemAndPropertyList)
667
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
848
_buildEventManager.AddTargetStartedEvent(e, _showTimeStamp || IsVerbosityAtLeast(
LoggerVerbosity
.Detailed));
874
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
911
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId)
941
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
949
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId)
987
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
993
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId)
1050
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1096
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1138
if ((_showCommandLine.HasValue && !_showCommandLine.Value) || (!_showCommandLine.HasValue && !IsVerbosityAtLeast(
LoggerVerbosity
.Normal)))
1146
LoggerVerbosity
minimumVerbosity = ImportanceToMinimumVerbosity(e.Importance, out lightenText);
1158
&& IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1195
if (Verbosity ==
LoggerVerbosity
.Diagnostic && showItemAndPropertyList)
1230
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1237
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
1282
if ((IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId)
1290
if (_showTimeStamp || IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
1309
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
1340
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId)
1451
if (IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic) || _showEventId)
1460
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
1579
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
1612
if (_showTimeStamp || IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic))
1619
if (!isMessagePrefix || IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
627
public string ToString(
LoggerVerbosity
verbosity)
631
if (verbosity >
LoggerVerbosity
.Normal)
Logging\ProfilerLogger.cs (1)
61
public
LoggerVerbosity
Verbosity { get; set; }
Logging\SerialConsoleLogger.cs (21)
26
: this(
LoggerVerbosity
.Normal)
36
public SerialConsoleLogger(
LoggerVerbosity
verbosity)
56
LoggerVerbosity
verbosity,
151
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
232
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal) && ShowSummary != false)
270
if (Verbosity ==
LoggerVerbosity
.Diagnostic && showItemAndPropertyList)
304
|| (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed)))
308
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
340
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
380
if ((targetHasErrorsOrWarnings && (IsVerbosityAtLeast(
LoggerVerbosity
.Normal)))
381
|| Verbosity ==
LoggerVerbosity
.Diagnostic)
422
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
461
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
508
LoggerVerbosity
minimumVerbosity = ImportanceToMinimumVerbosity(e.Importance, out bool lightenText);
545
if (IsVerbosityAtLeast(
LoggerVerbosity
.Detailed))
575
if (Verbosity ==
LoggerVerbosity
.Diagnostic && showItemAndPropertyList)
613
this.IsVerbosityAtLeast(
LoggerVerbosity
.Normal) ? outerMost.indentLevel : 0);
674
if (this.Verbosity ==
LoggerVerbosity
.Diagnostic)
680
WriteLinePrettyFromResource(this.IsVerbosityAtLeast(
LoggerVerbosity
.Normal) ? f.indentLevel : 0,
753
ErrorUtilities.VerifyThrow(this.Verbosity <
LoggerVerbosity
.Detailed,
756
if (IsVerbosityAtLeast(
LoggerVerbosity
.Normal))
Logging\SimpleErrorLogger.cs (2)
32
public
LoggerVerbosity
Verbosity
34
get =>
LoggerVerbosity
.Minimal;
Microsoft.Build.CommandLine.UnitTests (23)
CommandLineSwitches_Tests.cs (1)
1166
LoggerVerbosity
.Normal,
TerminalLogger_Tests.cs (10)
507
_terminallogger.Verbosity =
LoggerVerbosity
.Quiet;
517
_terminallogger.Verbosity =
LoggerVerbosity
.Minimal;
526
_terminallogger.Verbosity =
LoggerVerbosity
.Normal;
535
_terminallogger.Verbosity =
LoggerVerbosity
.Detailed;
545
_terminallogger.Verbosity =
LoggerVerbosity
.Diagnostic;
554
_terminallogger.Verbosity =
LoggerVerbosity
.Normal;
563
_terminallogger.Verbosity =
LoggerVerbosity
.Quiet;
572
_terminallogger.Verbosity =
LoggerVerbosity
.Minimal;
584
_terminallogger.Verbosity =
LoggerVerbosity
.Detailed;
599
_terminallogger.Verbosity =
LoggerVerbosity
.Detailed;
XMake_Tests.cs (12)
636
MSBuildApp.ProcessVerbositySwitch("Q").ShouldBe(
LoggerVerbosity
.Quiet);
637
MSBuildApp.ProcessVerbositySwitch("quiet").ShouldBe(
LoggerVerbosity
.Quiet);
638
MSBuildApp.ProcessVerbositySwitch("m").ShouldBe(
LoggerVerbosity
.Minimal);
639
MSBuildApp.ProcessVerbositySwitch("minimal").ShouldBe(
LoggerVerbosity
.Minimal);
640
MSBuildApp.ProcessVerbositySwitch("N").ShouldBe(
LoggerVerbosity
.Normal);
641
MSBuildApp.ProcessVerbositySwitch("normal").ShouldBe(
LoggerVerbosity
.Normal);
642
MSBuildApp.ProcessVerbositySwitch("d").ShouldBe(
LoggerVerbosity
.Detailed);
643
MSBuildApp.ProcessVerbositySwitch("detailed").ShouldBe(
LoggerVerbosity
.Detailed);
644
MSBuildApp.ProcessVerbositySwitch("diag").ShouldBe(
LoggerVerbosity
.Diagnostic);
645
MSBuildApp.ProcessVerbositySwitch("DIAGNOSTIC").ShouldBe(
LoggerVerbosity
.Diagnostic);
2226
LoggerVerbosity
verbosity =
LoggerVerbosity
.Normal;
Microsoft.Build.Engine.UnitTests (208)
BackEnd\CentralForwardingLogger_Tests.cs (3)
37
Assert.Equal(
LoggerVerbosity
.Quiet, centralLogger.Verbosity); // "Expected default to be Quiet"
38
centralLogger.Verbosity =
LoggerVerbosity
.Detailed;
39
Assert.Equal(
LoggerVerbosity
.Detailed, centralLogger.Verbosity); // "Expected default to be Detailed"
BackEnd\LoggingService_Tests.cs (22)
660
loggingService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Normal));
1016
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Quiet));
1018
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Minimal));
1020
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Normal));
1022
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Detailed));
1024
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Diagnostic));
1031
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Quiet));
1033
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Minimal));
1035
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Normal));
1037
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Detailed));
1039
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Diagnostic));
1053
node1LoggingService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Minimal));
1059
node2LoggingService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Minimal));
1063
node2LoggingService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Minimal));
1072
_initializedService.RegisterLogger(new ConsoleLogger(
LoggerVerbosity
.Normal));
1073
_initializedService.RegisterLogger(new MockLogger() { Verbosity =
LoggerVerbosity
.Normal });
1074
_initializedService.RegisterLogger(CreateConfigurableForwardingLogger(
LoggerVerbosity
.Normal));
1158
LoggerVerbosity
.Diagnostic); /*Not used, but the spirit of the logger is to forward everything so this is the most appropriate verbosity */
1165
private ConfigurableForwardingLogger CreateConfigurableForwardingLogger(
LoggerVerbosity
verbosity)
1295
public
LoggerVerbosity
Verbosity
1400
public
LoggerVerbosity
Verbosity
1467
public
LoggerVerbosity
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);
BackEnd\TaskHost_Tests.cs (2)
1230
public
LoggerVerbosity
Verbosity
1234
return
LoggerVerbosity
.Normal;
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 (14)
60
[InlineData(
LoggerVerbosity
.Quiet)]
61
[InlineData(
LoggerVerbosity
.Minimal)]
62
[InlineData(
LoggerVerbosity
.Normal)]
63
[InlineData(
LoggerVerbosity
.Detailed)]
64
[InlineData(
LoggerVerbosity
.Diagnostic)]
66
public void ForwardingLoggingEventsBasedOnVerbosity(
LoggerVerbosity
? loggerVerbosity)
92
case
LoggerVerbosity
.Quiet:
101
case
LoggerVerbosity
.Minimal:
111
case
LoggerVerbosity
.Normal:
127
case
LoggerVerbosity
.Detailed:
147
case
LoggerVerbosity
.Diagnostic:
180
Verbosity =
LoggerVerbosity
.Quiet
209
Verbosity =
LoggerVerbosity
.Normal,
241
Verbosity =
LoggerVerbosity
.Normal,
ConsoleLogger_Tests.cs (137)
181
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
213
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
253
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
305
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
326
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Diagnostic, sc.Write, null, null);
351
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
368
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
375
logger = new ConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
414
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
421
logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
428
logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
435
logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
442
logger = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
457
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Diagnostic,
486
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Diagnostic,
537
[InlineData(
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Quiet, true)]
538
[InlineData(
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Minimal, false)]
539
[InlineData(
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Normal, false)]
540
[InlineData(
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Detailed, false)]
541
[InlineData(
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Diagnostic, false)]
543
[InlineData(
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Quiet, true)]
544
[InlineData(
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Minimal, true)]
545
[InlineData(
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Normal, false)]
546
[InlineData(
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Detailed, false)]
547
[InlineData(
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Diagnostic, false)]
549
[InlineData(
LoggerVerbosity
.Normal,
LoggerVerbosity
.Quiet, true)]
550
[InlineData(
LoggerVerbosity
.Normal,
LoggerVerbosity
.Minimal, true)]
551
[InlineData(
LoggerVerbosity
.Normal,
LoggerVerbosity
.Normal, true)]
552
[InlineData(
LoggerVerbosity
.Normal,
LoggerVerbosity
.Detailed, false)]
553
[InlineData(
LoggerVerbosity
.Normal,
LoggerVerbosity
.Diagnostic, false)]
555
[InlineData(
LoggerVerbosity
.Detailed,
LoggerVerbosity
.Quiet, true)]
556
[InlineData(
LoggerVerbosity
.Detailed,
LoggerVerbosity
.Minimal, true)]
557
[InlineData(
LoggerVerbosity
.Detailed,
LoggerVerbosity
.Normal, true)]
558
[InlineData(
LoggerVerbosity
.Detailed,
LoggerVerbosity
.Detailed, true)]
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)]
567
public void TestVerbosityLessThan(
LoggerVerbosity
loggerVerbosity,
LoggerVerbosity
checkVerbosity, bool expectedResult)
577
[InlineData(
LoggerVerbosity
.Quiet, MessageImportance.Low, false)]
578
[InlineData(
LoggerVerbosity
.Quiet, MessageImportance.Normal, false)]
579
[InlineData(
LoggerVerbosity
.Quiet, MessageImportance.High, false)]
581
[InlineData(
LoggerVerbosity
.Minimal, MessageImportance.Low, false)]
582
[InlineData(
LoggerVerbosity
.Minimal, MessageImportance.Normal, false)]
583
[InlineData(
LoggerVerbosity
.Minimal, MessageImportance.High, true)]
585
[InlineData(
LoggerVerbosity
.Normal, MessageImportance.Low, false)]
586
[InlineData(
LoggerVerbosity
.Normal, MessageImportance.Normal, true)]
587
[InlineData(
LoggerVerbosity
.Normal, MessageImportance.High, true)]
589
[InlineData(
LoggerVerbosity
.Detailed, MessageImportance.Low, true)]
590
[InlineData(
LoggerVerbosity
.Detailed, MessageImportance.Normal, true)]
591
[InlineData(
LoggerVerbosity
.Detailed, MessageImportance.High, true)]
593
[InlineData(
LoggerVerbosity
.Diagnostic, MessageImportance.Low, true)]
594
[InlineData(
LoggerVerbosity
.Diagnostic, MessageImportance.Normal, true)]
595
[InlineData(
LoggerVerbosity
.Diagnostic, MessageImportance.High, true)]
597
public void SingleMessageTest(
LoggerVerbosity
loggerVerbosity, MessageImportance messageImportance, bool shouldPrint)
615
if (i == 2 && loggerVerbosity ==
LoggerVerbosity
.Diagnostic)
620
else if (i == 2 && loggerVerbosity ==
LoggerVerbosity
.Detailed)
684
ConsoleLogger logger = new ConsoleLogger(
LoggerVerbosity
.Diagnostic, console.Write, console.SetColor, console.ResetColor);
716
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Quiet,
770
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Quiet,
846
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Quiet,
922
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Minimal,
979
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Minimal,
1054
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Quiet,
1130
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Quiet,
1253
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Minimal,
1293
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal,
1370
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Detailed,
1387
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Diagnostic,
1404
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal,
1473
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Diagnostic, sc.Write, null, null);
1478
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Diagnostic, sc.Write, null, null);
1492
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1497
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1510
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1515
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1529
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1535
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Detailed, 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);
1568
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
1573
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
1587
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Minimal, sc.Write, null, null);
1593
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Minimal, 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);
1847
SerialConsoleLogger cl = new SerialConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, null, null);
1852
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Detailed, 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);
1882
SerialConsoleLogger L = new SerialConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
1893
ParallelConsoleLogger cl2 = new ParallelConsoleLogger(
LoggerVerbosity
.Diagnostic, sc.Write, null, null);
1904
SerialConsoleLogger L = new SerialConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
1917
ParallelConsoleLogger L2 = new ParallelConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, null, null);
1948
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal,
2038
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal,
2121
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
2246
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Detailed, sc.Write, sc.SetColor, sc.ResetColor);
2260
L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
2274
L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
2298
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
2337
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
2390
ConsoleLogger L = new ConsoleLogger(
LoggerVerbosity
.Normal, sc.Write, sc.SetColor, sc.ResetColor);
Evaluation\Evaluator_Tests.cs (2)
5022
logger.Verbosity =
LoggerVerbosity
.Diagnostic;
5062
Verbosity =
LoggerVerbosity
.Diagnostic,
FileLogger_Tests.cs (19)
115
fl.Verbosity =
LoggerVerbosity
.Quiet; // quiet global setting
139
LoggerVerbosity
[] verbosityEnumerations = new
LoggerVerbosity
[] {
LoggerVerbosity
.Quiet,
LoggerVerbosity
.Quiet,
140
LoggerVerbosity
.Minimal,
LoggerVerbosity
.Minimal,
141
LoggerVerbosity
.Normal,
LoggerVerbosity
.Normal,
142
LoggerVerbosity
.Detailed,
LoggerVerbosity
.Detailed,
143
LoggerVerbosity
.Diagnostic,
LoggerVerbosity
.Diagnostic};
389
[InlineData(
LoggerVerbosity
.Quiet, false)]
390
[InlineData(
LoggerVerbosity
.Minimal, false)]
391
[InlineData(
LoggerVerbosity
.Normal, true)]
392
[InlineData(
LoggerVerbosity
.Detailed, true)]
393
[InlineData(
LoggerVerbosity
.Diagnostic, true)]
394
public void LogVerbosityMessage(
LoggerVerbosity
loggerVerbosity, bool shouldContain)
LoggerDescription_Tests.cs (2)
23
const
LoggerVerbosity
verbosity =
LoggerVerbosity
.Detailed;
Microsoft.Build.Framework (7)
ILogger.cs (1)
69
LoggerVerbosity
Verbosity { get; set; }
Logging\LoggerParametersHelper.cs (6)
22
public static bool TryParseVerbosityParameter(string parameterValue, [NotNullWhen(true)] out
LoggerVerbosity
? verbosity)
28
verbosity =
LoggerVerbosity
.Quiet;
32
verbosity =
LoggerVerbosity
.Minimal;
36
verbosity =
LoggerVerbosity
.Normal;
40
verbosity =
LoggerVerbosity
.Detailed;
44
verbosity =
LoggerVerbosity
.Diagnostic;
Microsoft.Build.UnitTests.Shared (6)
MockLogger.cs (4)
180
public
LoggerVerbosity
Verbosity { get; set; } =
LoggerVerbosity
.Normal;
250
public MockLogger(ITestOutputHelper testOutputHelper = null, bool profileEvaluation = false, bool printEventsToStdout = true,
LoggerVerbosity
verbosity =
LoggerVerbosity
.Normal)
ObjectModelHelpers.cs (2)
757
LoggerVerbosity
loggerVerbosity =
LoggerVerbosity
.Normal)
Microsoft.Build.Utilities.Core (3)
Logger.cs (2)
21
public virtual
LoggerVerbosity
Verbosity { get; set; }
63
public bool IsVerbosityAtLeast(
LoggerVerbosity
checkVerbosity) => Verbosity >= checkVerbosity;
MuxLogger.cs (1)
114
public
LoggerVerbosity
Verbosity { get; set; }
Microsoft.Build.Utilities.UnitTests (56)
Logger_Tests.cs (53)
21
public EmptyLogger(
LoggerVerbosity
verbosity)
40
EmptyLogger logger = new EmptyLogger(
LoggerVerbosity
.Diagnostic);
43
Assert.Equal(
LoggerVerbosity
.Diagnostic, logger.Verbosity);
52
new EmptyLogger(
LoggerVerbosity
.Quiet).IsVerbosityAtLeast(
LoggerVerbosity
.Quiet).ShouldBeTrue();
53
new EmptyLogger(
LoggerVerbosity
.Quiet).IsVerbosityAtLeast(
LoggerVerbosity
.Minimal).ShouldBeFalse();
54
new EmptyLogger(
LoggerVerbosity
.Quiet).IsVerbosityAtLeast(
LoggerVerbosity
.Normal).ShouldBeFalse();
55
new EmptyLogger(
LoggerVerbosity
.Quiet).IsVerbosityAtLeast(
LoggerVerbosity
.Detailed).ShouldBeFalse();
56
new EmptyLogger(
LoggerVerbosity
.Quiet).IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic).ShouldBeFalse();
58
new EmptyLogger(
LoggerVerbosity
.Minimal).IsVerbosityAtLeast(
LoggerVerbosity
.Quiet).ShouldBeTrue();
59
new EmptyLogger(
LoggerVerbosity
.Minimal).IsVerbosityAtLeast(
LoggerVerbosity
.Minimal).ShouldBeTrue();
60
new EmptyLogger(
LoggerVerbosity
.Minimal).IsVerbosityAtLeast(
LoggerVerbosity
.Normal).ShouldBeFalse();
61
new EmptyLogger(
LoggerVerbosity
.Minimal).IsVerbosityAtLeast(
LoggerVerbosity
.Detailed).ShouldBeFalse();
62
new EmptyLogger(
LoggerVerbosity
.Minimal).IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic).ShouldBeFalse();
64
new EmptyLogger(
LoggerVerbosity
.Normal).IsVerbosityAtLeast(
LoggerVerbosity
.Quiet).ShouldBeTrue();
65
new EmptyLogger(
LoggerVerbosity
.Normal).IsVerbosityAtLeast(
LoggerVerbosity
.Minimal).ShouldBeTrue();
66
new EmptyLogger(
LoggerVerbosity
.Normal).IsVerbosityAtLeast(
LoggerVerbosity
.Normal).ShouldBeTrue();
67
new EmptyLogger(
LoggerVerbosity
.Normal).IsVerbosityAtLeast(
LoggerVerbosity
.Detailed).ShouldBeFalse();
68
new EmptyLogger(
LoggerVerbosity
.Normal).IsVerbosityAtLeast(
LoggerVerbosity
.Diagnostic).ShouldBeFalse();
70
new EmptyLogger(
LoggerVerbosity
.Detailed).IsVerbosityAtLeast(
LoggerVerbosity
.Quiet).ShouldBeTrue();
71
new EmptyLogger(
LoggerVerbosity
.Detailed).IsVerbosityAtLeast(
LoggerVerbosity
.Minimal).ShouldBeTrue();
72
new EmptyLogger(
LoggerVerbosity
.Detailed).IsVerbosityAtLeast(
LoggerVerbosity
.Normal).ShouldBeTrue();
73
new EmptyLogger(
LoggerVerbosity
.Detailed).IsVerbosityAtLeast(
LoggerVerbosity
.Detailed).ShouldBeTrue();
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();
MuxLogger_Tests.cs (3)
104
muxLogger.Verbosity =
LoggerVerbosity
.Normal;
367
public
LoggerVerbosity
Verbosity
369
get =>
LoggerVerbosity
.Normal;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Build\ProjectBuildManager.cs (2)
179
Verbosity = MSB.Framework.
LoggerVerbosity
.Normal
199
LogTaskInputs = _msbuildLogger is not null && _msbuildLogger.Verbosity ==
LoggerVerbosity
.Diagnostic
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
17
public MSB.Framework.
LoggerVerbosity
Verbosity { get; set; }
Microsoft.DotNet.ArcadeLogging (6)
PipelinesLogger.cs (6)
27
public
LoggerVerbosity
Verbosity { get; set; }
38
Verbosity = !string.IsNullOrEmpty(verbosityString) && Enum.TryParse(verbosityString, out
LoggerVerbosity
verbosity)
40
:
LoggerVerbosity
.Normal;
65
if (Verbosity ==
LoggerVerbosity
.Diagnostic)
260
if (Verbosity ==
LoggerVerbosity
.Diagnostic)
271
if(Verbosity !=
LoggerVerbosity
.Diagnostic)
MSBuild (52)
TerminalLogger\TerminalLogger.cs (13)
234
public TerminalLogger(
LoggerVerbosity
verbosity) : this()
251
public
LoggerVerbosity
Verbosity { get; set; } =
LoggerVerbosity
.Minimal;
331
if (parameterValue is not null && LoggerParametersHelper.TryParseVerbosityParameter(parameterValue, out
LoggerVerbosity
? verbosity))
333
Verbosity = (
LoggerVerbosity
)verbosity;
409
if (Verbosity >
LoggerVerbosity
.Quiet)
529
if (Verbosity <=
LoggerVerbosity
.Quiet)
818
if (Verbosity >
LoggerVerbosity
.Quiet)
870
if (Verbosity >
LoggerVerbosity
.Quiet)
890
if (e.Message != null && Verbosity >
LoggerVerbosity
.Quiet)
901
if (Verbosity >
LoggerVerbosity
.Normal)
930
&& Verbosity >
LoggerVerbosity
.Quiet)
972
&& Verbosity >
LoggerVerbosity
.Quiet)
XMake.cs (39)
703
LoggerVerbosity
verbosity =
LoggerVerbosity
.Normal;
704
LoggerVerbosity
originalVerbosity =
LoggerVerbosity
.Normal;
798
if (cpuCount == 1 && FileUtilities.IsSolutionFilename(projectFile) && verbosity >
LoggerVerbosity
.Minimal
1268
LoggerVerbosity
verbosity,
1330
verbosity ==
LoggerVerbosity
.Quiet &&
1350
bool logTaskInputs = verbosity ==
LoggerVerbosity
.Diagnostic || isBuildCheckEnabled;
2482
ref
LoggerVerbosity
verbosity,
2483
ref
LoggerVerbosity
originalVerbosity,
2766
verbosity =
LoggerVerbosity
.Diagnostic;
2773
else if (verbosity ==
LoggerVerbosity
.Diagnostic)
2778
if (originalVerbosity ==
LoggerVerbosity
.Diagnostic)
3800
out
LoggerVerbosity
verbosity,
3801
out
LoggerVerbosity
originalVerbosity,
3807
originalVerbosity =
LoggerVerbosity
.Normal;
3818
var
outVerbosity = verbosity;
3918
LoggerVerbosity
defaultFileLoggerVerbosity =
LoggerVerbosity
.Detailed;
3943
private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref
LoggerVerbosity
verbosity)
3957
verbosity =
LoggerVerbosity
.Diagnostic;
3969
LoggerVerbosity
verbosity,
4016
LoggerVerbosity
verbosity,
4037
DistributedLoggerRecord forwardingLoggerRecord = CreateForwardingLoggerRecord(logger, string.Join(";", TerminalLogger.ConfigurableForwardingLoggerParameters),
LoggerVerbosity
.Quiet);
4048
private static DistributedLoggerRecord CreateForwardingLoggerRecord(ILogger logger, string loggerParameters,
LoggerVerbosity
defaultVerbosity)
4054
LoggerVerbosity
effectiveVerbosity = defaultVerbosity;
4129
LoggerDescription forwardingLoggerDescription = new LoggerDescription(loggerClassName, loggerAssemblyName, null, fileParameters,
LoggerVerbosity
.Detailed);
4188
internal static
LoggerVerbosity
ProcessVerbositySwitch(string value)
4190
LoggerVerbosity
verbosity =
LoggerVerbosity
.Normal;
4195
verbosity =
LoggerVerbosity
.Quiet;
4200
verbosity =
LoggerVerbosity
.Minimal;
4205
verbosity =
LoggerVerbosity
.Normal;
4210
verbosity =
LoggerVerbosity
.Detailed;
4215
verbosity =
LoggerVerbosity
.Diagnostic;
4229
private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers,
LoggerVerbosity
verbosity)
4248
private static List<DistributedLoggerRecord> ProcessDistributedLoggerSwitch(string[] parameters,
LoggerVerbosity
verbosity)
4294
private static LoggerDescription ParseLoggingParameter(string parameter, string unquotedParameter,
LoggerVerbosity
verbosity)
4378
LoggerVerbosity
verbosity,