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:
Andy Gerlicher 2018-01-11 15:30:56 -08:00 committed by Nick Guerrera
parent ed2ca5d49a
commit 2b3ade043d
4 changed files with 51 additions and 7 deletions

View file

@ -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.");
}
}