Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous logging improvements #6326

Merged
merged 14 commits into from Apr 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Build/Logging/BaseConsoleLogger.cs
Expand Up @@ -908,14 +908,14 @@ public virtual void Initialize(IEventSource eventSource, int nodeCount)
/// <param name="eventSource">Available events.</param>
public virtual void Initialize(IEventSource eventSource)
{
ParseParameters();

// Always show perf summary for diagnostic verbosity.
if (IsVerbosityAtLeast(LoggerVerbosity.Diagnostic))
{
this.showPerfSummary = true;
}

ParseParameters();

showTargetOutputs = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDTARGETOUTPUTLOGGING"));

if (showOnlyWarnings || showOnlyErrors)
Expand Down Expand Up @@ -975,6 +975,9 @@ internal virtual bool ApplyParameter(string parameterName, string parameterValue
case "PERFORMANCESUMMARY":
showPerfSummary = true;
return true;
case "NOPERFORMANCESUMMARY":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

showPerfSummary = false;
return true;
case "NOSUMMARY":
ShowSummary = false;
return true;
Expand Down