Use a multi-proc aware MSBuild logger (#8371)
Make use of the MSBuild distributed logger functionality and add a forwarding logger. When in a multi-proc build, the forwarding logger will decide which events to forward to the main node to be logged. Without this, all events are routed and a perf penalty is incurred.
This commit is contained in:
parent
ed2ca5d49a
commit
2b3ade043d
4 changed files with 51 additions and 7 deletions
|
@ -138,7 +138,7 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
|
|||
allArgs.Should().NotBeNull();
|
||||
|
||||
allArgs.Should().Contain(
|
||||
value => value.IndexOf("/Logger", StringComparison.OrdinalIgnoreCase) >= 0,
|
||||
value => value.IndexOf("/distributedlogger", StringComparison.OrdinalIgnoreCase) >= 0,
|
||||
"The MSBuild logger argument should be specified when telemetry is enabled.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue