4 writes to LogAllEnvironmentVariables
Microsoft.Build (2)
Logging\BaseConsoleLogger.cs (2)
884Traits.LogAllEnvironmentVariables = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLENVIRONMENTVARIABLES")); 994Traits.LogAllEnvironmentVariables = true;
Microsoft.Build.Engine.UnitTests (2)
BuildEventArgsSerialization_Tests.cs (2)
59Traits.LogAllEnvironmentVariables = serializeAllEnvironmentVariables; 82Traits.LogAllEnvironmentVariables = false;
10 references to LogAllEnvironmentVariables
Microsoft.Build (9)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
212else if (Traits.LogAllEnvironmentVariables)
Definition\ProjectProperty.cs (2)
106if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is { IsValid: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables) 125if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is { IsValid: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Evaluation\Evaluator.cs (1)
349properties = Traits.LogAllEnvironmentVariables ? evaluator._data.Properties : evaluator.FilterOutEnvironmentDerivedProperties(evaluator._data.Properties);
Instance\ProjectPropertyInstance.cs (2)
102if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.IsValid == true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables) 116if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.IsValid == true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
292if (Traits.LogAllEnvironmentVariables)
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
234if (Traits.LogAllEnvironmentVariables)
Logging\SerialConsoleLogger.cs (1)
107if (Traits.LogAllEnvironmentVariables)
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
865Traits.LogAllEnvironmentVariables ? _buildStartedEvent.BuildEnvironment : _buildStartedEvent.BuildEnvironment?.Where(kvp => EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(kvp.Key)).ToDictionary(kvp => kvp.Key, kvp => kvp.Value));