1 write to LoggerSwitchParameters
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
3029
configurableLogger.ForwardingLoggerDescription.
LoggerSwitchParameters
+= ";PROJECTSTARTEDEVENT;PROJECTFINISHEDEVENT;FORWARDPROJECTCONTEXTEVENTS;RESPECTVERBOSITY";
17 references to LoggerSwitchParameters
Microsoft.Build (5)
BackEnd\BuildManager\BuildManager.cs (3)
3008
l.ForwardingLoggerDescription.
LoggerSwitchParameters
.Contains("PROJECTSTARTEDEVENT")
3010
l.ForwardingLoggerDescription.
LoggerSwitchParameters
.Contains("PROJECTFINISHEDEVENT")
3012
l.ForwardingLoggerDescription.
LoggerSwitchParameters
.Contains("FORWARDPROJECTCONTEXTEVENTS")
BackEnd\Components\Logging\LoggingService.cs (2)
1156
localForwardingLogger.Parameters = forwardingLogger.
LoggerSwitchParameters
;
1222
forwardingLogger.Parameters = description.
LoggerSwitchParameters
;
Microsoft.Build.CommandLine.UnitTests (8)
XMake_Tests.cs (8)
2126
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($"logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2139
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2152
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($"{fileLoggerParameters[0]};logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2165
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($";Parameter1;logFile={Path.Combine(Directory.GetCurrentDirectory(), "MSBuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2178
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe(fileLoggerParameters[0] + ";" + fileLoggerParameters[1], StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2189
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($"Parameter1;verbosity=Normal;logFile={Path.Combine(Directory.GetCurrentDirectory(), "..", "cat.log")};Parameter1", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2198
distributedLoggerRecords[0].ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe($"Parameter1;Parameter;;;Parameter;Parameter;logFile={Path.Combine(Directory.GetCurrentDirectory(), "msbuild.log")}", StringCompareShould.IgnoreCase); // "Expected parameter in logger to match parameter passed in"
2269
distributedLogger.ForwardingLoggerDescription.
LoggerSwitchParameters
.ShouldBe(
Microsoft.Build.Engine.UnitTests (2)
LoggerDescription_Tests.cs (2)
41
Assert.Equal(0, string.Compare(description.
LoggerSwitchParameters
, description2.
LoggerSwitchParameters
, StringComparison.OrdinalIgnoreCase)); // "Expected LoggerSwitchParameters to Match"
MSBuild (2)
XMake.cs (2)
4427
if (loggerDescription.
LoggerSwitchParameters
!= null)
4429
logger.Parameters = loggerDescription.
LoggerSwitchParameters
;