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