1031 references to MessageImportance
Crossgen2Tasks (9)
CommonFilePulledFromSdkRepo\Logger.cs (1)
59public void LogMessage(MessageImportance importance, string format, params string[] args)
CommonFilePulledFromSdkRepo\MessageLevel.cs (6)
12LowImportance = MessageImportance.Low, 13NormalImportance = MessageImportance.Normal, 14HighImportance = MessageImportance.High, 23public static MessageLevel ToLevel(this MessageImportance importance) 26public static MessageImportance ToImportance(this MessageLevel level) 27=> level >= 0 ? (MessageImportance)level : throw new InvalidCastException();
RunReadyToRunCompiler.cs (2)
398protected override void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) 402Log.LogMessage(MessageImportance.Normal, singleLine);
ILLink.Tasks (3)
LinkTask.cs (3)
255 protected override MessageImportance StandardErrorLoggingImportance => MessageImportance.High; 290 Log.LogMessage(MessageImportance.Normal, $"ILLink.Tasks path: {path}");
installer.tasks (8)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (8)
71MessageImportance.High, 112MessageImportance.High, 132MessageImportance.High, 138MessageImportance.High, 159MessageImportance.High, 166MessageImportance.High, 176Log.LogMessage(MessageImportance.High, $"Importing {newSections.Length} sections..."); 186Log.LogMessage(MessageImportance.High, $"Wrote new TPN contents to {TpnFile}.");
Microsoft.Build (205)
BackEnd\BuildManager\BuildManager.cs (7)
397public MessageImportance Importance { get; } 403public DeferredBuildMessage(string text, MessageImportance importance) 410public DeferredBuildMessage(string text, MessageImportance importance, string filePath) 573loggingService.LogComment(buildEventContext: BuildEventContext.Invalid, MessageImportance.Normal, "BuildCheckEnabled"); 642loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles)); 647loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile); 3225loggingService?.LogCommentFromText(BuildEventContext.Invalid, MessageImportance.High, message);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
290_componentHost.LoggingService.LogBuildEvent(new BuildMessageEventArgs(msg, null, null, MessageImportance.Low)
BackEnd\Components\Logging\ILoggingService.cs (4)
242MessageImportance MinimumRequiredMessageImportance 342void LogComment(BuildEventContext buildEventContext, MessageImportance importance, string messageResourceName, params object[] messageArgs); 350void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message); 362void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object[] messageArgs);
BackEnd\Components\Logging\LoggingContext.cs (4)
125internal void LogComment(MessageImportance importance, string messageResourceName, params object?[]? messageArgs) 138internal void LogComment(MessageImportance importance, BuildEventFileInfo file, string messageResourceName, params object?[]? messageArgs) 166internal void LogCommentFromText(MessageImportance importance, string message) 178internal void LogCommentFromText(MessageImportance importance, string message, params object[] messageArgs)
BackEnd\Components\Logging\LoggingService.cs (12)
238private MessageImportance? _minimumRequiredMessageImportance; 818public MessageImportance MinimumRequiredMessageImportance 823return _minimumRequiredMessageImportance ?? MessageImportance.Low; 1578MessageImportance.Low, 1600MessageImportance.Low, 1839MessageImportance? minimumImportance = innerLogger switch 1845BuildCheckForwardingLogger => MessageImportance.High, 1846BuildCheckConnectorLogger => MessageImportance.High, 1854CentralForwardingLogger => (_nodeId > 1 ? MessageImportance.Low : null), 1861? MessageImportance.High 1863: MessageImportance.Low, 1875_minimumRequiredMessageImportance = (MessageImportance)newMinImportance;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (3)
37public void LogComment(BuildEventContext buildEventContext, MessageImportance importance, string messageResourceName, params object[] messageArgs) 56public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message) 71public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object[] messageArgs)
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
107LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", projectStarted.ToolsVersion); 146LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion);
BackEnd\Components\ProjectCache\PluginLoggerBase.cs (1)
15public abstract void LogMessage(string message, MessageImportance? messageImportance = null);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (13)
254_loggingService.LogComment(buildEventContext, MessageImportance.High, "LoadingProjectCachePlugin", pluginTypeName); 517_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithDefaultTargets", buildRequest.ProjectFullPath); 521_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithTargetNames", buildRequest.ProjectFullPath, targetNames); 579_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithDefaultTargets", buildRequest.ProjectFullPath); 583_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithTargetNames", buildRequest.ProjectFullPath, targetNames); 590_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.GetPropertyValue(ReservedPropertyNames.projectName)); 597_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithDefaultTargets", buildRequest.ProjectFullPath); 601_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithTargetNames", buildRequest.ProjectFullPath, targetNames); 608_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithDefaultTargets", buildRequest.ProjectFullPath); 612_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithTargetNames", buildRequest.ProjectFullPath, targetNames); 819_loggingService.LogComment(buildEventContext, MessageImportance.Low, "ProjectCacheEndBuild"); 907public override void LogMessage(string message, MessageImportance? messageImportance = null) 911messageImportance ?? MessageImportance.Normal,
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (9)
258Log.LogMessageFromResources(MessageImportance.Low, "General.UndefineProperties"); 262Log.LogMessageFromText(String.Format(CultureInfo.InvariantCulture, " {0}", property), MessageImportance.Low); 273Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NotBuildingInParallel"); 283Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NoStopOnFirstFailure"); 322Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingProjects"); 385Log.LogMessageFromResources(MessageImportance.High, "MSBuild.ProjectFileNotFoundMessage", project.ItemSpec); 593log.LogMessageFromResources(MessageImportance.Low, "General.ProjectUndefineProperties", projectNames[i]); 597log.LogMessageFromText(String.Format(CultureInfo.InvariantCulture, " {0}", property), MessageImportance.Low); 649log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingTargets");
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
90LoggingContext.LogComment(MessageImportance.Low, "PropertyGroupLogMessage", property.Name, evaluatedValue);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
828loggingContext.LogCommentFromText(MessageImportance.Low, ex.ToString()); 1170_projectLoggingContext.LogComment(MessageImportance.Low,
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
151_projectLoggingContext.LogComment(Framework.MessageImportance.Low,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (11)
244Importance = MessageImportance.Normal 281_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name); 287_loggingService.LogCommentFromText(_buildEventContext, MessageImportance.Low, reason); 299_loggingService.LogComment(_buildEventContext, MessageImportance.Normal, "BuildTargetPartially", _targetToAnalyze.Name); 304_loggingService.LogCommentFromText(_buildEventContext, MessageImportance.Low, reason); 455_loggingService.LogComment(_buildEventContext, MessageImportance.Normal, 458_loggingService.LogComment(_buildEventContext, MessageImportance.Low, 467_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name); 468_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletelyNoInputsSpecified"); 496_loggingService.LogComment(_buildEventContext, MessageImportance.Normal, 499_loggingService.LogComment(_buildEventContext, MessageImportance.Low,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (8)
460taskLoggingContext.LogCommentFromText(MessageImportance.Low, s); 505_targetLoggingContext.LogCommentFromText(MessageImportance.Low, s); 621MessageImportance.Low, 889taskLoggingContext.LogComment(MessageImportance.Normal, "ErrorConvertedIntoWarning"); 927taskLoggingContext.LogComment(MessageImportance.Normal, "ErrorConvertedIntoWarning"); 957taskLoggingContext.LogComment(MessageImportance.Normal, "TaskReturnedFalseButDidNotLogError", _taskNode.Name); 966taskLoggingContext.LogComment(MessageImportance.Normal, "ErrorConvertedIntoWarning"); 1004MessageImportance.Normal,
BackEnd\Components\RequestBuilder\TaskHost.cs (7)
460_taskLoggingContext.LoggingService.LogComment(_taskLoggingContext.BuildEventContext, MessageImportance.Normal, "ErrorConvertedIntoWarning"); 846LoggingContext.LogComment(MessageImportance.Low, "TaskAcquiredCores", _taskLoggingContext.TaskName, 886LoggingContext.LogComment(MessageImportance.Low, "TaskReleasedCores", _taskLoggingContext.TaskName, 891LoggingContext.LogComment(MessageImportance.Low, "TaskReleasedCoresWarning", _taskLoggingContext.TaskName, 925public override bool LogsMessagesOfImportance(MessageImportance importance) 935MessageImportance minimumImportance = _taskHost._taskLoggingContext?.LoggingService.MinimumRequiredMessageImportance ?? MessageImportance.Low;
BackEnd\Components\Scheduler\Scheduler.cs (7)
559loggingService.LogComment(context, MessageImportance.Normal, "DetailedSummaryHeader"); 565loggingService.LogComment(context, MessageImportance.Normal, "BuildHierarchyHeader"); 1980MessageImportance.Normal, 2329loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationHeader", nodeIndices.ToString()); 2422loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2493loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationEntry", stringBuilder, duration, accumulatedDuration, durationBar); 2527MessageImportance.Normal,
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
128loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CantWriteBuildPlan", planName)); 174loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CantReadBuildPlan", planName)); 178loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildPlanCorrupt", planName)); 182loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildPlanCorrupt", planName));
BackEnd\Components\SdkResolution\SdkLogger.cs (2)
25public override void LogMessage(string message, MessageImportance messageImportance = MessageImportance.Low)
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
329loggingContext.LogComment(MessageImportance.Low, "SDKResolverNullMessage", sdkResolver.Name, sdk.ToString()); 357loggingContext.LogComment(MessageImportance.Low, "SucceededToResolveSDK", sdk.ToString(), sdkResolver.Name, result.Path ?? "null", result.Version ?? "null"); 373else if (loggingContext.LoggingService.MinimumRequiredMessageImportance >= MessageImportance.Low) 378loggingContext.LogComment(MessageImportance.Low, "SDKResolverAttempt", sdkResolver.Name, sdk.ToString(), resultWarnings, resultErrors);
BackEnd\Shared\EventsCreatorHelper.cs (1)
16public static BuildMessageEventArgs CreateMessageEventFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (4)
339_taskLoggingContext.LogComment(MessageImportance.Normal, "TaskAssemblyLocationMismatch", realTaskAssemblyLoaction, _taskFactoryWrapper.TaskFactoryLoadedType.Path); 1309MessageImportance.Low, 1494_taskLoggingContext.LogComment(MessageImportance.Low, "OutputPropertyLogMessage", outputTargetName, outputString); 1581_taskLoggingContext.LogComment(MessageImportance.Low, "OutputPropertyLogMessage", outputTargetName, outputString);
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (3)
49checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckRegistered", checkCandidate.Name, checkCandidate.Assembly); 55.ForEach(t => checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckBaseTypeNotAssignable", t.Name, t.Assembly)); 74checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckFailedRuleLoading", ex.Message);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (3)
173checkContext.DispatchAsCommentFromText(MessageImportance.Low, $"BuildCheck run times{Environment.NewLine}"); 175checkContext.DispatchAsCommentFromText(MessageImportance.Low, infraData); 177checkContext.DispatchAsCommentFromText(MessageImportance.Low, checkData);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (5)
115checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckFailedAcquisition", acquisitionData.AssemblyPath); 217checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckSuccessfulAcquisition", instance.FriendlyName); 352checkContext.DispatchAsCommentFromText(MessageImportance.High, $"Dismounting check '{checkToRemove.FriendlyName}'"); 366checkContext.DispatchAsCommentFromText(MessageImportance.High, $"Dismounting check '{check.Check.FriendlyName}'. The check has thrown an unhandled exception while executing registered actions."); 374checkContext.DispatchAsCommentFromText(MessageImportance.Normal, $"Dismounting check '{throttledCheck.FriendlyName}'. The check has exceeded the maximum number of results allowed. Any additional results will not be displayed.");
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (3)
37public void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs) 44public void DispatchAsCommentFromText(MessageImportance importance, string message) 47private void DispatchAsCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
29public void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs) 33public void DispatchAsCommentFromText(MessageImportance importance, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
23void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs); 38void DispatchAsCommentFromText(MessageImportance importance, string message);
Construction\Solution\SolutionProjectGenerator.cs (1)
1561MessageImportance.Low,
Evaluation\Evaluator.cs (6)
1039_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.Location.File); 1078_evaluationLoggingContext.LogComment(MessageImportance.Low, "TargetDoesNotExistBeforeTargetMessage", unescapedBeforeTarget, targetElement.BeforeTargetsLocation.LocationString); 1101_evaluationLoggingContext.LogComment(MessageImportance.Low, "TargetDoesNotExistAfterTargetMessage", unescapedAfterTarget, targetElement.AfterTargetsLocation.LocationString); 1286_evaluationLoggingContext.LogComment(MessageImportance.Low, "OM_GlobalProperty", propertyElement.Name); 1561_evaluationLoggingContext.LogComment(MessageImportance.Low, "SearchPathsForMSBuildExtensionsPath", 1604_evaluationLoggingContext.LogComment(MessageImportance.Low, "TryingExtensionsPath", newExpandedImportPath, extensionPathExpanded);
Evaluation\Expander.cs (1)
1105_loggingContext.LogComment(MessageImportance.Low, new BuildEventFileInfo(_elementLocation),
Evaluation\IntrinsicFunctions.cs (1)
706loggingContext.LogComment(MessageImportance.Low, "CustomCheckAssemblyNotExist", pathToAssembly);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
338MessageImportance.Low,
Instance\ProjectInstance.cs (4)
2564loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedExplicitToolsVersion", toolsVersion); 2627loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedOldSolutionVersion", "2.0", solutionVersion); 2632loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedOldSolutionVersion", "3.5", solutionVersion); 2891loggingService.LogCommentFromText(projectBuildEventContext, MessageImportance.Low, comment);
Instance\TaskFactories\TaskHostTask.cs (1)
256_taskLoggingContext.LogComment(MessageImportance.Low, "ExecutingTaskInTaskHost", _taskType.Type.Name, _taskType.Assembly.AssemblyLocation, runtime, architecture);
Instance\TaskRegistry.cs (5)
485targetLoggingContext.LogComment(MessageImportance.Low, "TaskFound", taskName, taskFactory.Name); 489targetLoggingContext.LogComment(MessageImportance.Low, "TaskFoundFromFactory", taskName, taskFactory.Name); 494targetLoggingContext.LogComment(MessageImportance.Low, "TaskNeedsSTA", taskName); 744loggingContext.LogComment(MessageImportance.Low, "OverrideUsingTaskElementCreated", taskName, projectUsingTaskInXml.OverrideLocation); 1428targetLoggingContext.LogComment(MessageImportance.Low, "InitializingTaskFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation);
Logging\BaseConsoleLogger.cs (4)
280internal static LoggerVerbosity ImportanceToMinimumVerbosity(MessageImportance importance, out bool lightenText) 284case MessageImportance.High: 287case MessageImportance.Normal: 290case MessageImportance.Low:
Logging\BinaryLogger\BinaryLogger.cs (1)
305var args = new BuildMessageEventArgs(text, helpKeyword: null, senderName: "BinaryLogger", MessageImportance.Normal);
Logging\BinaryLogger\BuildEventArgsFields.cs (2)
25public MessageImportance Importance { get; set; } = MessageImportance.Low;
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1409result.Importance = (MessageImportance)ReadInt32();
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
236MessageImportance.Normal, 249MessageImportance.Normal, 804if (writeImportance && e.Importance != MessageImportance.Low)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
180MessageImportance.Low);
Logging\ConsoleLogger.cs (8)
520internal MessageImportance GetMinimumMessageImportance() 522if (Verbosity >= BaseConsoleLogger.ImportanceToMinimumVerbosity(MessageImportance.Low, out _)) 524return MessageImportance.Low; 526else if (Verbosity >= BaseConsoleLogger.ImportanceToMinimumVerbosity(MessageImportance.Normal, out _)) 528return MessageImportance.Normal; 530else if (Verbosity >= BaseConsoleLogger.ImportanceToMinimumVerbosity(MessageImportance.High, out _)) 532return MessageImportance.High; 535return MessageImportance.High - 1;
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (8)
303internal MessageImportance GetMinimumMessageImportance() 307return MessageImportance.Low; 311return MessageImportance.Normal; 315return MessageImportance.High; 318return MessageImportance.High - 1; 355(_forwardLowImportanceMessages && e.Importance == MessageImportance.Low) || 356(_forwardNormalImportanceMessages && e.Importance == MessageImportance.Normal) || 357(_forwardHighImportanceMessages && e.Importance == MessageImportance.High) ||
LogMessagePacketBase.cs (8)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 633LoggingEventType.TaskCommandLineEvent => new TaskCommandLineEventArgs(null, null, MessageImportance.Normal), 967MessageImportance importance = taskCommandLineEventArgs.Importance; 982MessageImportance importance = buildMessageEventArgs.Importance; 1331MessageImportance importance = MessageImportance.Normal; 1349MessageImportance importance = MessageImportance.Normal;
PlatformNegotiation.cs (7)
53log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform); 59log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.SamePlatform"); 68log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, projectReferenceLookupTableMetadata); 76log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, platformLookupTable); 82log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.AnyCPUDefault"); 94log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform); 122log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.LookupTableParsed", stringTable);
PropertyParser.cs (2)
165log?.LogMessageFromText(parameterName, MessageImportance.Low); 186MessageImportance.Low);
TaskLoggingHelper.cs (14)
256public bool LogsMessagesOfImportance(MessageImportance importance) 275Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 277LogMessage(MessageImportance.Normal, message, messageArgs); 291public void LogMessage(MessageImportance importance, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object[] messageArgs) 359MessageImportance importance, 470Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 472LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs); 486public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs) 592LogCommandLine(MessageImportance.Low, commandLine); 602public void LogCommandLine(MessageImportance importance, string commandLine) 1307return LogMessagesFromFile(fileName, MessageImportance.Low); 1319public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance) 1346public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance) 1374public bool LogMessageFromText(string lineOfText, MessageImportance messageImportance)
Microsoft.Build.CommandLine.UnitTests (45)
TerminalLogger_Tests.cs (15)
200private BuildMessageEventArgs MakeMessageEventArgs(string message, MessageImportance importance) 208private BuildMessageEventArgs MakeTaskCommandLineEventArgs(string message, MessageImportance importance) 216private BuildMessageEventArgs MakeExtendedMessageEventArgs(string message, MessageImportance importance, string extendedType, Dictionary<string, string?>? extendedMetadata) 354MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs(_immediateMessageString, MessageImportance.High)); 365MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("--anycustomarg", MessageImportance.High)); 481MessageImportance.High); 496MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs(_immediateMessageString, MessageImportance.High)); 497MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("High importance message!", MessageImportance.High)); 498MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Normal importance message!", MessageImportance.Normal)); 499MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Low importance message!", MessageImportance.Low)); 509MessageImportance.High, 514MessageImportance.High, 519MessageImportance.High, 610MessageRaised?.Invoke(_eventSender, MakeTaskCommandLineEventArgs("Task Command Line.", MessageImportance.High)); 625MessageRaised?.Invoke(_eventSender, MakeTaskCommandLineEventArgs("Task Command Line.", MessageImportance.High));
ValidateAssemblyLoadContext.cs (1)
34Log.LogMessage(MessageImportance.High, $"Task {nameof(ValidateAssemblyLoadContext)} loaded in AssemblyLoadContext named {thisLoadContext.Name}");
XMake_Tests.cs (29)
2625bool shouldLogHigh = Log.LogsMessagesOfImportance(MessageImportance.High); 2626bool shouldLogNormal = Log.LogsMessagesOfImportance(MessageImportance.Normal); 2627bool shouldLogLow = Log.LogsMessagesOfImportance(MessageImportance.Low); 2628return (MessageImportance)ExpectedMinimumMessageImportance switch 2630MessageImportance.High - 1 => !shouldLogHigh && !shouldLogNormal && !shouldLogLow, 2631MessageImportance.High => shouldLogHigh && !shouldLogNormal && !shouldLogLow, 2632MessageImportance.Normal => shouldLogHigh && shouldLogNormal && !shouldLogLow, 2633MessageImportance.Low => shouldLogHigh && shouldLogNormal && shouldLogLow, 2675[InlineData("/v:diagnostic", MessageImportance.Low)] 2676[InlineData("/v:detailed", MessageImportance.Low)] 2677[InlineData("/v:normal", MessageImportance.Normal)] 2678[InlineData("/v:minimal", MessageImportance.High)] 2679[InlineData("/v:quiet", MessageImportance.High - 1)] 2681[InlineData("/v:diagnostic /bl", MessageImportance.Low)] 2682[InlineData("/v:detailed /bl", MessageImportance.Low)] 2683[InlineData("/v:normal /bl", MessageImportance.Low)] // v:normal but with binary logger so everything must be logged 2684[InlineData("/v:minimal /bl", MessageImportance.Low)] // v:minimal but with binary logger so everything must be logged 2685[InlineData("/v:quiet /bl", MessageImportance.Low)] // v:quiet but with binary logger so everything must be logged 2687[InlineData("/v:diagnostic /check", MessageImportance.Low)] 2688[InlineData("/v:detailed /check", MessageImportance.Low)] 2689[InlineData("/v:normal /check", MessageImportance.Normal)] 2690[InlineData("/v:minimal /check", MessageImportance.High)] 2691[InlineData("/v:quiet /check", MessageImportance.High)] 2693[InlineData("/v:diagnostic /tl", MessageImportance.Low)] 2694[InlineData("/v:detailed /tl", MessageImportance.Low)] 2695[InlineData("/v:normal /tl", MessageImportance.Normal)] 2696[InlineData("/v:minimal /tl", MessageImportance.High)] 2697[InlineData("/v:quiet /tl", MessageImportance.High - 1)] 2698public void EndToEndMinimumMessageImportance(string arguments, MessageImportance expectedMinimumMessageImportance)
Microsoft.Build.Engine.UnitTests (129)
BackEnd\BuildEventArgTransportSink_Tests.cs (1)
66BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High);
BackEnd\BuildManager_Tests.cs (6)
985new BuildManager.DeferredBuildMessage(highMessage, MessageImportance.High), 986new BuildManager.DeferredBuildMessage(normalMessage, MessageImportance.Normal), 987new BuildManager.DeferredBuildMessage(lowMessage, MessageImportance.Low) 1009deferredMessages[0].Importance.ShouldBe(MessageImportance.High); 1011deferredMessages[1].Importance.ShouldBe(MessageImportance.Normal); 1013deferredMessages[2].Importance.ShouldBe(MessageImportance.Low);
BackEnd\CentralForwardingLogger_Tests.cs (2)
97BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 117BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal);
BackEnd\EventRedirectorToSink_Tests.cs (1)
62BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High);
BackEnd\EventSourceSink_Tests.cs (2)
732private static BuildMessageEventArgs s_buildMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 747private static TaskCommandLineEventArgs s_taskCommandLine = new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low);
BackEnd\LoggingContext_Tests.cs (1)
72context.LogCommentFromText(Framework.MessageImportance.High, "Test message");
BackEnd\LoggingService_Tests.cs (19)
659Assert.Equal(MessageImportance.Low, loggingService.MinimumRequiredMessageImportance); 661Assert.Equal(MessageImportance.Normal, loggingService.MinimumRequiredMessageImportance); 702BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High); 829Assert.Equal(MessageImportance.Low, actualBuildEvent.Importance); 936Assert.Equal(MessageImportance.Low, actualBuildEvent.Importance); 1017_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.High - 1); 1019_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.High); 1021_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Normal); 1023_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1025_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1032_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.High - 1); 1034_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.High); 1036_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Normal); 1038_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1040_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1055node1LoggingService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.High); 1061node2LoggingService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1064node2LoggingService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low); 1075_initializedService.MinimumRequiredMessageImportance.ShouldBe(MessageImportance.Low);
BackEnd\LoggingServicesLogMethod_Tests.cs (13)
67BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High); 680service.LogComment(s_buildEventContext, MessageImportance.Low, null, null); 693service.LogComment(s_buildEventContext, MessageImportance.Low, String.Empty, null); 704MessageImportance messageImportance = MessageImportance.Normal; 716service.LogComment(s_buildEventContext, MessageImportance.Normal, "BuildFinishedSuccess"); 733service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, null); 744service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, string.Empty); 756service.LogCommentFromText(null, MessageImportance.Low, "Hello"); 766MessageImportance messageImportance = MessageImportance.Normal; 775service.LogCommentFromText(s_buildEventContext, MessageImportance.Normal, ResourceUtilities.GetResourceString("BuildFinishedSuccess")); 1705private void VerityBuildMessageEventArgs(ProcessBuildEventHelper service, MessageImportance messageImportance, string message)
BackEnd\MockLoggingService.cs (5)
251public MessageImportance MinimumRequiredMessageImportance 253get => MessageImportance.Low; 318public void LogComment(BuildEventContext buildEventContext, MessageImportance importance, string messageResourceName, params object[] messageArgs) 333public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message) 339public void LogCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object[] messageArgs)
BackEnd\NodePackets_Tests.cs (14)
50BuildMessageEventArgs lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low); 53TaskCommandLineEventArgs commandLine = new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low); 69ExtendedBuildMessageEventArgs extMessage = new("extMsg", "SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender", MessageImportance.Normal); 73PropertyInitialValueSetEventArgs propInit = new("prop", "val", "propsource", "message", "help", "sender", MessageImportance.Normal); 75PropertyReassignmentEventArgs propReassign = new("prop", "prevValue", "newValue", "loc", "message", "help", "sender", MessageImportance.Normal); 77UninitializedPropertyReadEventArgs uninitializedPropertyRead = new("prop", "message", "help", "sender", MessageImportance.Normal); 231Importance = MessageImportance.Normal, 261new UninitializedPropertyReadEventArgs("prop", "message", "help", "sender", MessageImportance.Normal), 263new PropertyReassignmentEventArgs("prop", "prevValue", "newValue", "loc", "message", "help", "sender", MessageImportance.Normal), 264new PropertyInitialValueSetEventArgs("prop", "val", "propsource", "message", "help", "sender", MessageImportance.Normal), 269new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low), 276new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low), 288new AssemblyLoadBuildEventArgs(AssemblyLoadingContext.Evaluation, "init", "aname", "path", Guid.NewGuid(), "domain", MessageImportance.Normal), 302new ExtendedBuildMessageEventArgs("extWarn", "SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender", MessageImportance.Normal, DateTime.UtcNow, "arg1")
BackEnd\SdkResolverService_Tests.cs (6)
855resolverContext.Logger.LogMessage("MockSdkResolver1 running", MessageImportance.Normal); 874resolverContext.Logger.LogMessage("MockSdkResolver2 running", MessageImportance.Normal); 893resolverContext.Logger.LogMessage("MockSdkResolverWithResolvableSdkPattern1 running", MessageImportance.Normal); 912resolverContext.Logger.LogMessage("MockSdkResolverWithResolvableSdkPattern2 running", MessageImportance.Normal); 955resolverContext.Logger.LogMessage("MockSdkResolverThrows running", MessageImportance.Normal); 968resolverContext.Logger.LogMessage("MockSdkResolverDefault running", MessageImportance.Normal);
BackEnd\TaskHost_Tests.cs (5)
309_taskHost.LogMessageEvent(new BuildMessageEventArgs("message", "HelpKeyword", "senderName", MessageImportance.High)); 313Assert.Equal(MessageImportance.High, _customLogger.LastMessage.Importance); // "Expected Message importance to be high" 436_taskHost.LogMessageEvent(new ExtendedBuildMessageEventArgs("testExtCustomBuildMessage", "ext message", null, null, MessageImportance.Normal)); 864: base(message, null, null, MessageImportance.High) 995: base(message, null, null, MessageImportance.High)
BuildEventArgsSerialization_Tests.cs (4)
454MessageImportance.High, 489MessageImportance.High, 603desArgs.Importance.ShouldBe(MessageImportance.Normal); 704MessageImportance.Low,
ConfigureableForwardingLogger_Tests.cs (4)
20private readonly BuildMessageEventArgs _lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low); 21private readonly BuildMessageEventArgs _normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 22private readonly BuildMessageEventArgs _highMessage = new BuildMessageEventArgs("Message3", "help", "sender", MessageImportance.High); 25private readonly TaskCommandLineEventArgs _commandLine = new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low);
ConsoleLogger_Tests.cs (31)
468es.Consume(new BuildMessageEventArgs(null, null, null, MessageImportance.High)); 500BuildMessageEventArgs bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.High); 577[InlineData(LoggerVerbosity.Quiet, MessageImportance.Low, false)] 578[InlineData(LoggerVerbosity.Quiet, MessageImportance.Normal, false)] 579[InlineData(LoggerVerbosity.Quiet, MessageImportance.High, false)] 581[InlineData(LoggerVerbosity.Minimal, MessageImportance.Low, false)] 582[InlineData(LoggerVerbosity.Minimal, MessageImportance.Normal, false)] 583[InlineData(LoggerVerbosity.Minimal, MessageImportance.High, true)] 585[InlineData(LoggerVerbosity.Normal, MessageImportance.Low, false)] 586[InlineData(LoggerVerbosity.Normal, MessageImportance.Normal, true)] 587[InlineData(LoggerVerbosity.Normal, MessageImportance.High, true)] 589[InlineData(LoggerVerbosity.Detailed, MessageImportance.Low, true)] 590[InlineData(LoggerVerbosity.Detailed, MessageImportance.Normal, true)] 591[InlineData(LoggerVerbosity.Detailed, MessageImportance.High, true)] 593[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.Low, true)] 594[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.Normal, true)] 595[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.High, true)] 597public void SingleMessageTest(LoggerVerbosity loggerVerbosity, MessageImportance messageImportance, bool shouldPrint) 673buildEventArgs = new BuildMessageEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, MessageImportance.Low); 739BuildMessageEventArgs bmea = new BuildMessageEventArgs("foo!", null, "sender", MessageImportance.High); 945BuildMessageEventArgs bmea = new BuildMessageEventArgs("foo!", null, "sender", MessageImportance.Normal); 2148BuildMessageEventArgs messsage1 = new BuildMessageEventArgs(null, null, null, MessageImportance.High); 2176BuildMessageEventArgs messsage2 = new BuildMessageEventArgs(null, null, null, MessageImportance.High); 2249TaskCommandLineEventArgs messsage1 = new TaskCommandLineEventArgs("Message", null, MessageImportance.High); 2263BuildMessageEventArgs messsage2 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High); 2277messsage2 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High); 2321BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High); 2359BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High); 2361BuildMessageEventArgs messsage2 = new BuildMessageEventArgs("Message2", null, null, MessageImportance.High); 2363BuildMessageEventArgs messsage3 = new BuildMessageEventArgs("Message3", null, null, MessageImportance.High); 2419BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
EscapingInProjects_Tests.cs (1)
58Log.LogMessageFromText("Received TaskItemParam: " + TaskItemParam.ItemSpec, MessageImportance.High);
FileLogger_Tests.cs (8)
61SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 90SetUpFileLoggerAndLogMessage("logfile=||invalid||", new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 117fl.MessageHandler(null, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 219SetUpFileLoggerAndLogMessage("encoding=utf-16;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 246SetUpFileLoggerAndLogMessage("encoding=utf-8;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 296SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 320SetUpFileLoggerAndLogMessage("append;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High)); 345SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
InternalEngineHelpers.cs (3)
144resolverContext.Logger.LogMessage($"{nameof(resolverContext.ProjectFilePath)} = {resolverContext.ProjectFilePath}", MessageImportance.High); 145resolverContext.Logger.LogMessage($"{nameof(resolverContext.SolutionFilePath)} = {resolverContext.SolutionFilePath}", MessageImportance.High); 146resolverContext.Logger.LogMessage($"{nameof(resolverContext.MSBuildVersion)} = {resolverContext.MSBuildVersion}", MessageImportance.High);
ProjectCache\ProjectCacheTests.cs (3)
281logger.LogMessage("MockCache: BeginBuildAsync", MessageImportance.High); 298logger.LogMessage($"MockCache: GetCacheResultAsync for {buildRequest.ProjectFullPath}", MessageImportance.High); 315logger.LogMessage("MockCache: EndBuildAsync", MessageImportance.High);
Microsoft.Build.Framework (42)
AssemblyLoadBuildEventArgs.cs (2)
26MessageImportance importance = MessageImportance.Low)
BuildMessageEventArgs.cs (10)
68MessageImportance importance) 85MessageImportance importance, 105MessageImportance importance, 160MessageImportance importance) 192MessageImportance importance, 226MessageImportance importance, 246MessageImportance importance) 255private MessageImportance importance; 311importance = (MessageImportance)reader.ReadInt32(); 332public MessageImportance Importance
CriticalBuildMessageEventArgs.cs (1)
112: base(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, MessageImportance.High, eventTimestamp, messageArgs)
EngineServices.cs (5)
38/// Example: If we know that no logger is interested in <see cref="MessageImportance.Low"/>, this method returns <see langword="true"/> 39/// for <see cref="MessageImportance.Normal"/> and <see cref="MessageImportance.High"/>, and returns <see langword="false"/> 40/// for <see cref="MessageImportance.Low"/>. 42public virtual bool LogsMessagesOfImportance(MessageImportance importance) => throw new NotImplementedException();
EnvironmentVariableReadEventArgs.cs (3)
38MessageImportance importance = MessageImportance.Low) 55: base(environmentVarValue, file, line, column, MessageImportance.Low) => EnvironmentVariableName = environmentVarName;
ExtendedBuildMessageEventArgs.cs (6)
45public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance) 57public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp) 70public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs) 89string? message, string? helpKeyword, string? senderName, MessageImportance importance) 109string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp) 130string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs)
GeneratedFileUsedEventArgs.cs (1)
25: base(string.Empty, null, null, MessageImportance.Low)
MetaProjectGeneratedEventArgs.cs (1)
27: base(message, null, null, MessageImportance.Low, DateTime.UtcNow, metaprojectPath)
ProjectImportedEventArgs.cs (1)
45importance: MessageImportance.Low,
PropertyInitialValueSetEventArgs.cs (2)
40MessageImportance importance = MessageImportance.Low) : base(message, helpKeyword, senderName, importance)
PropertyReassignmentEventArgs.cs (2)
44MessageImportance importance = MessageImportance.Low) : base(message, helpKeyword, senderName, importance)
Sdk\SdkLogger.cs (2)
19public abstract void LogMessage(string message, MessageImportance messageImportance = MessageImportance.Low);
TargetSkippedEventArgs.cs (1)
74importance: MessageImportance.Low,
TaskCommandLineEventArgs.cs (2)
47MessageImportance importance) 66MessageImportance importance,
TaskParameterEventArgs.cs (1)
43: base(null, null, null, MessageImportance.Low, eventTimestamp)
UninitializedPropertyReadEventArgs.cs (2)
38MessageImportance importance = MessageImportance.Low) : base(message, helpKeyword, senderName, importance)
Microsoft.Build.Framework.UnitTests (35)
BuildMessageEventArgs_Tests.cs (12)
25bmea = new BuildMessageEventArgs("Message", "HelpKeyword", "Sender", MessageImportance.Low); 26bmea = new BuildMessageEventArgs("Message", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now); 27bmea = new BuildMessageEventArgs("{0}", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now, "Message"); 28bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "Sender", MessageImportance.Low); 29bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now); 30bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now, "Message"); 31bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low); 32bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low, DateTime.Now); 33bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low, DateTime.Now, null); 34bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low); 35bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low, DateTime.Now); 36bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low, DateTime.Now, null);
CustomEventArgSerialization_Tests.cs (12)
260BuildMessageEventArgs genericEvent = new BuildMessageEventArgs("Message", "HelpKeyword", "SenderName", MessageImportance.High); 269BuildMessageEventArgs newGenericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low); 278genericEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, MessageImportance.Low); 287newGenericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low); 296genericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low); 305newGenericEvent = new BuildMessageEventArgs("Something", "Something", "Something", MessageImportance.Low); 330BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("SubCategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName", MessageImportance.High); 339BuildMessageEventArgs newMessageEvent = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low); 347messageEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty, MessageImportance.Low); 356newMessageEvent = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low); 364messageEvent = new BuildMessageEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, MessageImportance.Low); 373newMessageEvent = new BuildMessageEventArgs("Something", "Something", "Something", 0, 0, 0, 0, "Something", "Something", "Something", MessageImportance.Low);
ExtendedBuildEventArgs_Tests.cs (7)
138importance: withOptionalData ? MessageImportance.Normal : default, 241ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High); 242ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now); 243ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now, "arg1"); 244ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", MessageImportance.High); 245ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now); 246ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now, "Message");
TaskCommandLineEventArgs_Tests.cs (4)
25taskCommandLineEvent = new TaskCommandLineEventArgs("Commandline", "taskName", MessageImportance.High); 26taskCommandLineEvent = new TaskCommandLineEventArgs("Commandline", "taskName", MessageImportance.High, DateTime.Now); 27taskCommandLineEvent = new TaskCommandLineEventArgs(null, null, MessageImportance.High); 28taskCommandLineEvent = new TaskCommandLineEventArgs(null, null, MessageImportance.High, DateTime.Now);
Microsoft.Build.Tasks.CodeAnalysis (16)
CopyRefAssembly.cs (6)
51Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3", SourcePath, e.Message, e.StackTrace); 56Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_SourceNotRef1", SourcePath); 66Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_SkippingCopy1", DestinationPath); 70Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed", SourcePath, File.GetLastWriteTimeUtc(SourcePath).ToString("O"), source, DestinationPath, File.GetLastWriteTimeUtc(DestinationPath).ToString("O"), destination); 74Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadDestination1", DestinationPath); 86Log.LogMessageFromResources(MessageImportance.Normal, "CopyRefAssembly_Copying", SourcePath, DestinationPath);
Csc.cs (1)
173internal override void LogCompilerOutput(string output, MessageImportance messageImportance)
ManagedCompiler.cs (2)
786internal abstract void LogCompilerOutput(string output, MessageImportance messageImportance); 1117Log.LogMessageFromResources(MessageImportance.Normal, "General_ParameterUnsupportedOnHostCompiler", parameterName);
ShowMessageForImplicitlySkipAnalyzers.cs (1)
21Log.LogMessage(MessageImportance.High, ErrorString.ImplicitlySkipAnalyzersMessage);
Vbc.cs (6)
241internal override void LogCompilerOutput(string output, MessageImportance messageImportance) 621/// original vbc structure such that we can call <see cref="TaskLoggingHelper.LogMessageFromText(string, MessageImportance)" /> 624protected override void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) 652private void ParseVBErrorOrWarning(string singleLine, MessageImportance messageImportance) 1132public MessageImportance MessageImportance { get; } 1134public VBError(string message, MessageImportance importance)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
TestUtilities\ErrorLoggerEngine.cs (2)
19public MessageImportance MinimumMessageImportance = MessageImportance.Low;
TestUtilities\MockEngine.cs (2)
18public MessageImportance MinimumMessageImportance = MessageImportance.Low;
VbcTests.cs (1)
499", Build.Framework.MessageImportance.High);
Microsoft.Build.Tasks.Core (154)
AssemblyDependency\GenerateBindingRedirects.cs (2)
137Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.CreatingBindingRedirectionFile", OutputAppConfigFile.ItemSpec); 371Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.ProcessingSuggestedRedirect", redirectStr, maxVerStr);
AssemblyDependency\ResolveAssemblyReference.cs (40)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 1143Log.LogMessage(MessageImportance.Low, details); 1195MessageImportance.High, 1381MessageImportance importance = ChooseReferenceLoggingImportance(reference); 1426private MessageImportance ChooseReferenceLoggingImportance(Reference reference) 1428MessageImportance importance = MessageImportance.Low; 1440importance = MessageImportance.Normal; 1452MessageImportance importance = MessageImportance.Low; 1611Log.LogMessage(MessageImportance.Low, Strings.LogAttributeFormat, metadataName, metadataValue); 1621private void LogPrimaryOrDependency(Reference reference, string fusionName, MessageImportance importance) 1685private void LogReferenceErrors(Reference reference, MessageImportance importance) 1747private void LogFullName(Reference reference, MessageImportance importance) 1765private void LogAssembliesConsideredAndRejected(Reference reference, string fusionName, MessageImportance importance) 1780MessageImportance messageImportance = MessageImportance.Low; 1786if ((messageImportance == MessageImportance.Low && (importance == MessageImportance.Normal || importance == MessageImportance.High)) || 1787(messageImportance == MessageImportance.Normal && importance == MessageImportance.High)) 1864private void LogDependees(Reference reference, MessageImportance importance) 1881private void LogRelatedFiles(Reference reference, MessageImportance importance) 1900private void LogSatellites(Reference reference, MessageImportance importance) 1913private void LogScatterFiles(Reference reference, MessageImportance importance) 1926private void LogCopyLocalState(Reference reference, MessageImportance importance) 1979private void LogImageRuntime(Reference reference, MessageImportance importance) 2896Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkSubsetLogHeader"); 2898Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkRedistLogHeader"); 2903Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, redistInfo.Path); 2907Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkAllowListLogHeader"); 2914Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, inclusionListInfo.Path); 2921Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkExclusionListLogHeader"); 2924Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", assemblyFullName); 2950Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", subsetName); 2972Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.UsingExclusionList"); 3081Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.BadTargetFrameworkFormat", version); 3113Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.IgnoringBecauseNonEmptySubtype", assembly.ItemSpec, subType);
AssignCulture.cs (1)
193MessageImportance.Low,
AssignProjectConfiguration.cs (2)
204Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationResolutionSuccess", projectRef.ItemSpec, resolvedReference.GetMetadata(attrFullConfiguration)); 235Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationUnresolved", projectRef.ItemSpec);
Copy.cs (11)
268Log.LogMessage(MessageImportance.Normal, CreatesDirectory, destinationFolder); 304TryCopyViaLink(HardLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out hardLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethods.MakeHardLink(destination, source, ref errorMessage, Log)); 310Log.LogMessage(MessageImportance.Normal, RetryingAsSymbolicLink, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 314Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 322TryCopyViaLink(SymbolicLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out symbolicLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethodsShared.MakeSymbolicLink(destination, source, ref errorMessage)); 330Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 345Log.LogMessage(MessageImportance.Normal, FileComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 365private void TryCopyViaLink(string linkComment, MessageImportance messageImportance, FileState sourceFileState, FileState destinationFileState, out bool linkCreated, ref string errorMessage, Func<string, string, string, bool> createLink) 368Log.LogMessage(MessageImportance.Normal, linkComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 385Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name); 849MessageImportance.Low,
CreateManifestResourceName.cs (5)
134Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.RootNamespace", RootNamespace); 138Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.NoRootNamespace"); 192Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUpon", fileName, dependentUpon); 196Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUponNothing", fileName); 241Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.AssignedName", fileName, manifestName);
Delete.cs (2)
131Log.LogMessageFromResources(MessageImportance.Normal, "Delete.DeletingFile", file.ItemSpec); 138Log.LogMessageFromResources(MessageImportance.Low, "Delete.SkippingNonexistentFile", file.ItemSpec);
DownloadFile.cs (3)
132Log.LogMessage(MessageImportance.Low, actualException.ToString()); 185Log.LogMessageFromResources(MessageImportance.Normal, "DownloadFile.DidNotDownloadBecauseOfFileMatch", SourceUrl, destinationFile.FullName, nameof(SkipUnchangedFiles), "true"); 203Log.LogMessageFromResources(MessageImportance.High, "DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength);
Exec.cs (6)
317Log.LogMessageFromResources(MessageImportance.Normal, "Exec.CommandFailedNoErrorCode", Command, ExitCode); 369protected override void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) 655protected override MessageImportance StandardErrorLoggingImportance => MessageImportance.High; 664protected override MessageImportance StandardOutputLoggingImportance => MessageImportance.High;
FileIO\WriteLinesToFile.cs (3)
118Log.LogMessageFromResources(MessageImportance.Low, "WriteLinesToFile.SkippingUnchangedFile", File.ItemSpec); 132Log.LogMessageFromResources(MessageImportance.Low, "WriteLinesToFile.ErrorReadingFile", File.ItemSpec); 143Log.LogMessageFromResources(MessageImportance.Normal, "WriteLinesToFile.UnusedWriteOnlyWhenDifferent", File.ItemSpec);
FindAppConfigFile.cs (2)
137Log.LogMessageFromResources(MessageImportance.Low, "FindInList.Found", AppConfigFile.ItemSpec); 145Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
FindInList.cs (2)
113Log.LogMessageFromResources(MessageImportance.Low, "FindInList.Found", path); 121Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
GenerateResource.cs (13)
604Log.LogCommandLine(MessageImportance.Low, commandLineBuilder.ToString()); 688Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.NoSources"); 1516Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", _newestUncorrelatedInput, outputFilePath); 1572Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.LinkedInputDoesntExist", linkedFilePath); 1579Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.LinkedInputNewer", linkedFilePath, outputFilePath); 1597Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.OutputDoesntExist", outputFilePath); 1604Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", sourceFilePath, outputFilePath); 1612Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", _newestUncorrelatedInput, outputFilePath); 1660Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputDoesntExist", Sources[0].ItemSpec); 1666Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.OutputDoesntExist", StronglyTypedFileName); 1672Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", Sources[0].ItemSpec, StronglyTypedFileName); 1720Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputDoesntExist", _newestUncorrelatedInput); 3050_logger.LogMessageFromResources(MessageImportance.Low, "GenerateResource.ReadResourceMessage", reader.resources.Count, filename);
GetCompatiblePlatform.cs (1)
67Log.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.DisplayChosenPlatform", AssignedProjectsWithPlatform[i].ItemSpec, buildProjectReferenceAs);
GetInstalledSDKLocations.cs (3)
159Log.LogMessageFromResources(MessageImportance.Low, "GetInstalledSDKs.FoundSDKs", installedSDKs.Count); 160Log.LogMessageFromResources(MessageImportance.Low, "GetInstalledSDKs.ListInstalledSDKs"); 165Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", sdkInfo);
GetSDKReferenceFiles.cs (3)
286Log.LogMessageFromText(exceptionMessage, MessageImportance.High); 316Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandRedistFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty)); 390Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandReferencesFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty));
ListOperators\FindUnderPath.cs (1)
74Log.LogMessageFromResources(MessageImportance.Low, "FindUnderPath.ComparisonPath", Path.ItemSpec);
MakeDir.cs (1)
71Log.LogMessageFromResources(MessageImportance.Normal, "MakeDir.Comment", directory.ItemSpec);
Message.cs (4)
50MessageImportance messageImportance; 54messageImportance = MessageImportance.Normal; 61messageImportance = (MessageImportance)Enum.Parse(typeof(MessageImportance), Importance, true /* case-insensitive */);
Move.cs (2)
238Log.LogMessageFromResources(MessageImportance.Normal, "Move.CreatesDirectory", destinationFolder); 243Log.LogMessageFromResources(MessageImportance.Normal, "Move.FileComment", sourceFile, destinationFile);
MSBuild.cs (9)
223Log.LogMessageFromResources(MessageImportance.Low, "General.UndefineProperties"); 227Log.LogMessageFromText($" {property}", MessageImportance.Low); 238Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NotBuildingInParallel"); 248Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NoStopOnFirstFailure"); 287Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingProjects"); 348Log.LogMessageFromResources(MessageImportance.High, "MSBuild.ProjectFileNotFoundMessage", project.ItemSpec); 545log.LogMessageFromResources(MessageImportance.Low, "General.ProjectUndefineProperties", projectNames[i]); 549log.LogMessageFromText($" {property}", MessageImportance.Low); 597log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingTargets");
MSBuildInternalMessage.cs (3)
70MessageImportance importance = (MessageImportance)Enum.Parse(typeof(MessageImportance), MessageImportance, true);
PlatformNegotiation.cs (7)
53log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform); 59log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.SamePlatform"); 68log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, projectReferenceLookupTableMetadata); 76log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, platformLookupTable); 82log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.AnyCPUDefault"); 94log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform); 122log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.LookupTableParsed", stringTable);
PropertyParser.cs (2)
165log?.LogMessageFromText(parameterName, MessageImportance.Low); 186MessageImportance.Low);
RemoveDir.cs (2)
73Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.Removing", directory.ItemSpec); 102Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.SkippingNonexistentDirectory", directory.ItemSpec);
ResolveNonMSBuildProjectOutput.cs (3)
100Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceResolutionStarting", projectRef.ItemSpec); 124Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceResolutionSuccess", projectRef.ItemSpec, resolvedPath.ItemSpec); 139Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceUnresolved", projectRef.ItemSpec);
ResolveSDKReference.cs (2)
599Log.LogMessageFromResources(MessageImportance.Low, "ResolveSDKReference.SearchingForSDK", reference.ReferenceItem.ItemSpec); 603Log.LogMessageFromResources(MessageImportance.Low, "ResolveSDKReference.FoundSDK", reference.ResolvedPath);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
744_log.LogMessageFromResources(MessageImportance.Low, "CodeTaskFactory.CompilingAssembly"); 758_log.LogMessageFromResources(MessageImportance.Low, "CodeTaskFactory.FindSourceFileAt", sourceCodePath);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
46StandardOutputImportance = MessageImportance.Low.ToString("G");
SdkToolsPathUtility.cs (1)
108log.LogMessageFromResources(MessageImportance.Low, "General.SdkToolsPathNotSpecifiedOrToolDoesNotExist", toolName, sdkToolsPath);
Telemetry.cs (1)
44Log.LogMessageFromResources(MessageImportance.Low, "Telemetry.IllegalEventDataString", pair, EventData);
Touch.cs (2)
22private MessageImportance messageImportance; 140messageImportance = MessageImportance.Normal;
Unzip.cs (3)
169Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFilter", zipArchiveEntry.FullName); 197Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.FullName, destinationPath.FullName, nameof(SkipUnchangedFiles), "true"); 232Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName);
WriteCodeFragment.cs (2)
102Log.LogMessageFromResources(MessageImportance.Low, "WriteCodeFragment.NoWorkToDo"); 128Log.LogMessageFromResources(MessageImportance.Low, "WriteCodeFragment.GeneratedFile", OutputFile.ItemSpec);
XmlPeek.cs (1)
156Log.LogMessageFromResources(MessageImportance.Low, "XmlPeek.Found", item);
XmlPoke.cs (2)
128Log.LogMessageFromResources(MessageImportance.Low, "XmlPoke.Replaced", iter.Current.Name, Value.ItemSpec); 137Log.LogMessageFromResources(MessageImportance.Normal, "XmlPoke.Count", count);
XslTransformation.cs (3)
164Log.LogMessageFromResources(MessageImportance.High, "XslTransform.SecuritySettingsViaUseTrustedSettings"); 184Log.LogMessage(MessageImportance.Low, e.ToString()); 467_log.LogMessageFromResources(MessageImportance.Low, "XslTransform.UseTrustedSettings", _data);
ZipDirectory.cs (1)
85Log.LogMessageFromResources(MessageImportance.High, "ZipDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName);
Microsoft.Build.Utilities.Core (86)
TaskLoggingHelper.cs (14)
256public bool LogsMessagesOfImportance(MessageImportance importance) 275Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 277LogMessage(MessageImportance.Normal, message, messageArgs); 291public void LogMessage(MessageImportance importance, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object[] messageArgs) 359MessageImportance importance, 470Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 472LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs); 486public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs) 592LogCommandLine(MessageImportance.Low, commandLine); 602public void LogCommandLine(MessageImportance importance, string commandLine) 1307return LogMessagesFromFile(fileName, MessageImportance.Low); 1319public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance) 1346public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance) 1374public bool LogMessageFromText(string lineOfText, MessageImportance messageImportance)
ToolTask.cs (21)
288protected virtual MessageImportance StandardErrorLoggingImportance => MessageImportance.Normal; 316protected virtual MessageImportance StandardOutputLoggingImportance => MessageImportance.Low; 321protected MessageImportance StandardOutputImportanceToUse => _standardOutputImportanceToUse; 326protected MessageImportance StandardErrorImportanceToUse => _standardErrorImportanceToUse; 441LogPrivate.LogMessageFromResources(MessageImportance.Low, "General.ToolCommandFailedNoErrorCode", ExitCode); 477protected virtual void LogToolCommand(string message) => LogPrivate.LogCommandLine(MessageImportance.High, message); // Log a descriptive message about what's happening. 850Log.LogMessageFromText($"Preserving temporary file '{fileName}'", MessageImportance.Low); 1092MessageImportance messageImportance, 1147protected virtual void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) => Log.LogMessageFromText(singleLine, messageImportance); 1277_standardErrorImportanceToUse = (MessageImportance)Enum.Parse(typeof(MessageImportance), StandardErrorImportance, true /* case-insensitive */); 1297_standardOutputImportanceToUse = (MessageImportance)Enum.Parse(typeof(MessageImportance), StandardOutputImportance, true /* case-insensitive */); 1668LogPrivate.LogMessageFromResources(MessageImportance.Low, "ToolTask.EnvironmentVariableHeader"); 1672Log.LogMessage(MessageImportance.Low, " {0}={1}", key, value); 1694private MessageImportance _standardOutputImportanceToUse = MessageImportance.Low; 1699private MessageImportance _standardErrorImportanceToUse = MessageImportance.Normal;
TrackedDependencies\CanonicalTrackedFilesHelper.cs (1)
93FileTracker.LogMessageFromResources(log, MessageImportance.Low, "Tracking_OutputDoesNotExist", item.ItemSpec);
TrackedDependencies\CanonicalTrackedInputFiles.cs (17)
243FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_AllOutputsAreUpToDate"); 258FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, modifiedPath, modifiedTime); 262FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, modifiedPath); 266FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, outputFilePath); 270FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec); 376FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_DependenciesForRootNotFound", upperSourcesRoot); 396FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_AllOutputsAreUpToDate"); 404FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputsNotShown", sourcesNeedingCompilation.Count); 409FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputsFor", upperSourcesRoot); 413FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + inputItem); 418FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputNewerThanOutput", newestSourceDependencyFile, oldestOutputFile); 601FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_SingleLogFileNotAvailable", tlogFileName.ItemSpec); 626FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_ReadTrackingCached"); 629FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec); 640FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_ReadTrackingLogs"); 645FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec); 997FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_ReadLogEntryNotFound", rootingMarker);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (14)
117FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingLogNotAvailable"); 140FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_WriteTrackingCached"); 143FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec); 148FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_WriteTrackingLogs"); 157FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec); 358FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputForRootNotFound", upperSourcesRoot); 368FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.Count); 373FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsFor", upperSourcesRoot); 377FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + outputItem); 444FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputForRootNotFound", upperSourcesRoot); 454FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.Count); 459FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsFor", upperSourcesRoot); 463FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + outputItem); 691FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_WriteLogEntryNotFound", rootingMarker);
TrackedDependencies\FileTracker.cs (2)
727internal static void LogMessageFromResources(TaskLoggingHelper Log, MessageImportance importance, string messageResourceName, params object[] messageArgs) 747internal static void LogMessage(TaskLoggingHelper Log, MessageImportance importance, string message, params object[] messageArgs)
TrackedDependencies\FlatTrackingData.cs (17)
389FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingCached"); 392FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec); 397FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingLogs"); 407FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec); 739Log.LogMessageFromResources(MessageImportance.Low, "Tracking_LogFilesNotAvailable"); 748Log.LogMessageFromResources(MessageImportance.Low, "Tracking_MissingInputs"); 753FileTracker.LogMessageFromResources(Log, MessageImportance.Low, "Tracking_InputsNotShown", inputs.MissingFiles.Count); 760FileTracker.LogMessage(Log, MessageImportance.Low, "\t" + input); 767Log.LogMessageFromResources(MessageImportance.Low, "Tracking_MissingOutputs"); 772FileTracker.LogMessageFromResources(Log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.MissingFiles.Count); 779FileTracker.LogMessage(Log, MessageImportance.Low, "\t" + output); 787Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, inputs.NewestTLogFileName, inputs.NewestTLogTimeUtc); 793Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", outputs.NewestFileName, outputs.NewestFileTimeUtc, outputs.NewestTLogFileName, outputs.NewestTLogTimeUtc); 799Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, outputs.NewestFileName, outputs.NewestFileTimeUtc); 805Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, inputs.NewestTLogFileName, inputs.NewestTLogTimeUtc); 811Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, outputs.NewestTLogFileName, outputs.NewestTLogTimeUtc); 817Log.LogMessageFromResources(MessageImportance.Normal, "Tracking_UpToDate");
Microsoft.Build.Utilities.UnitTests (10)
MockEngine.cs (2)
34public MessageImportance MinimumMessageImportance { get; set; } = MessageImportance.Low;
TaskLoggingHelper_Tests.cs (5)
98t.Log.LogMessagesFromStream(sr, MessageImportance.High).ShouldBeTrue(); 102t.Log.LogMessagesFromStream(sr, MessageImportance.Low).ShouldBeFalse(); 106t.Log.LogMessagesFromStream(sr, MessageImportance.High).ShouldBeFalse(); 133t.Log.LogMessageFromText("{1", MessageImportance.High); 191t.Log.LogMessagesFromFile(file, MessageImportance.High);
ToolTask_Tests.cs (3)
92protected override void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) 454engine.MinimumMessageImportance = MessageImportance.High; 482engine.MinimumMessageImportance = MessageImportance.High;
Microsoft.DotNet.Arcade.Sdk (6)
src\CheckRequiredDotNetVersion.cs (1)
62Log.LogMessage(MessageImportance.Low, $"Previous .NET Core SDK version check failed.");
src\GenerateChecksums.cs (1)
40Log.LogMessage(MessageImportance.High, $"Generating checksum for '{item.ItemSpec}' into '{destinationPath}'...");
src\InstallDotNetCore.cs (2)
104Log.LogMessage(MessageImportance.Low, "Skipping installing x86 runtimes because this is a non-Windows platform and .NET Core x86 is not currently supported on any non-Windows platform."); 145Log.LogMessage(MessageImportance.Low, $"Executing: {DotNetInstallScript} {arguments}");
src\LocateDotNet.cs (1)
53Log.LogMessage(MessageImportance.Low, $"Reused cached value.");
src\SingleError.cs (1)
23Log.LogMessage(MessageImportance.Low, Text);
Microsoft.DotNet.Build.Tasks.Feed (20)
src\BuildModelFactory.cs (1)
125_log.LogMessage(MessageImportance.High, $"Writing build manifest file '{assetManifestPath}'...");
src\common\AzureStorageUtils.cs (2)
265log.LogMessage(MessageImportance.Low, $"Package '{localPackageFullPath}' has different length than remote package '{packageContentUrl}'."); 275log.LogMessage(MessageImportance.Low, $"Package '{localPackageFullPath}' has different MD5 hash than remote package '{packageContentUrl}'.");
src\common\CreateAzureContainer.cs (1)
50Log.LogMessage(MessageImportance.High, $"Created blob storage container {StorageUri}");
src\common\GeneralUtils.cs (2)
171log.LogMessage(MessageImportance.Low, $"Unexpected exception {e.Message} when attempting to determine whether feed is internal."); 239log.LogMessage(MessageImportance.High, $"Defaulting to category 'OTHER' for asset {assetId}");
src\common\LatestLinksManager.cs (3)
76_logger.LogMessage(MessageImportance.High, "\nThe following aka.ms links for blobs will be created:"); 117_logger.LogMessage(MessageImportance.High, $" {Path.GetFileName(asset)}"); 119_logger.LogMessage(MessageImportance.High, $" aka.ms/{newLink.ShortUrl} -> {newLink.TargetUrl}");
src\ConfigureInputFeed.cs (2)
32Log.LogMessage(MessageImportance.High, $"START Writing NuGet.config to {nugetConfigLocation}..."); 46Log.LogMessage(MessageImportance.High, "DONE Writing NuGet.config...");
src\CreateAzureDevOpsFeed.cs (2)
114Log.LogMessage(MessageImportance.High, $"Creating the new Azure DevOps artifacts feed '{baseFeedName}'..."); 182Log.LogMessage(MessageImportance.High, $"Feed '{TargetFeedURL}' created successfully!");
src\GenerateBuildManifest.cs (1)
150Log.LogMessage(MessageImportance.High, $"Writing build manifest file '{OutputPath}'...");
src\PushToBuildStorage.cs (6)
122Log.LogMessage(MessageImportance.High, "Performing push to local artifacts storage."); 126Log.LogMessage(MessageImportance.High, "Performing push to Azure DevOps artifacts storage."); 131Log.LogMessage(MessageImportance.High, $"It's no longer necessary to specify a value for the {nameof(AssetsTemporaryDirectory)} property. " + 314Log.LogMessage(MessageImportance.High, 319Log.LogMessage(MessageImportance.High, 324Log.LogMessage(MessageImportance.High,
Microsoft.DotNet.Build.Tasks.Installers (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.Build.Tasks.Packaging (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.Build.Tasks.TargetFramework (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.Build.Tasks.Workloads (11)
CreateVisualStudioWorkload.wix.cs (2)
156Log.LogMessage(MessageImportance.Low, $"Setting {nameof(_supportsMachineArch)} to {manifestPackage.SupportsMachineArch} for {Path.GetFileName(manifestPackage.PackageFileName)}"); 338Log.LogMessage(MessageImportance.Low, string.Format(Strings.BuildExtractingPackage, data.Package.PackagePath));
CreateVisualStudioWorkloadSet.wix.cs (1)
65Log.LogMessage(MessageImportance.High, "Extracting workload set");
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Wix\LinkerToolTask.cs (1)
69Log?.LogMessage(MessageImportance.High, $"Light exited with: {ExitCode}, HasLoggedErrors: {HasLoggedErrors}");
Wix\WixToolTaskBase.cs (2)
40protected override MessageImportance StandardOutputLoggingImportance => MessageImportance.High;
WorkloadPackageBase.cs (1)
260Log?.LogMessage(MessageImportance.Low, string.Format(Strings.WorkloadPackageDeleteExclusion, file));
Microsoft.DotNet.Deployment.Tasks.Links (14)
Microsoft.DotNet.GenAPI (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.GenFacades (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.Helix.Sdk (42)
AzureDevOpsTask.cs (3)
95ex => Log.LogMessage(MessageImportance.Low, $"Azure Dev Ops Operation failed: {ex}\nRetrying..."), 111ex => Log.LogMessage(MessageImportance.Normal, $"Azure Dev Ops Operation failed: {ex}\nRetrying..."), 141Log.LogMessage(MessageImportance.Normal, message);
CancelHelixJob.cs (5)
34Log.LogMessage(MessageImportance.High, $"Cancelling Helix Job {correlationId}"); 45Log.LogMessage(MessageImportance.High, $"Successfully cancelled Helix Job {correlationId} via cancellation token."); 50Log.LogMessage(MessageImportance.High, "'HelixJobCancellationToken' metadata not supplied, will attempt to cancel using Access token. (Token must match user id that started the work)"); 52Log.LogMessage(MessageImportance.High, $"Successfully cancelled Helix Job {correlationId} via access token."); 78Log.LogMessage(MessageImportance.High, $"Successfully cancelled {Jobs.Count()} Helix jobs");
CheckAzurePipelinesTestResults.cs (2)
85Log.LogMessage(MessageImportance.Low, $"Test run {testRunId} has not failed."); 191Log.LogMessage(MessageImportance.High, message);
CreateXHarnessAndroidWorkItems.cs (1)
189Log.LogMessage(MessageImportance.Low, $"Generated XHarness command: {xharnessRunCommand}");
DownloadFromResultsContainer.cs (2)
52Log.LogMessage(MessageImportance.High, $"Downloading result files for job {JobId}"); 84Log.LogMessage(MessageImportance.Normal, $"Downloading {file} => {destinationFile} ...");
FindDotNetCliPackage.cs (7)
205Log.LogMessage(MessageImportance.Low, $"Checking for productVersion.txt files under {baseUri}"); 219Log.LogMessage(MessageImportance.Low, $"No *productVersion.txt files found for {Version} under {SanitizeString(baseUri)}"); 248Log.LogMessage(MessageImportance.Low, $"Hit exception in GetAsync(); will retry up to 10 times ({SanitizeString(toLog.Message)})"); 272Log.LogMessage(MessageImportance.Low, $"Hit exception in SendAsync(); will retry up to 10 times ({SanitizeString(toLog.Message)})"); 326Log.LogMessage(MessageImportance.Low, "Resolving latest dotnet cli version."); 334Log.LogMessage(MessageImportance.Low, $"Resolving latest version from url {latestVersionUrl}"); 342Log.LogMessage(MessageImportance.Low, $"Got latest dotnet cli version {version}");
HelixTask.cs (3)
42Log.LogMessage(MessageImportance.Low, "No AccessToken provided, using anonymous access to helix api."); 46Log.LogMessage(MessageImportance.Low, "Authenticating to helix api using provided AccessToken"); 99Log.LogMessage(MessageImportance.Low, $"Checking for job completion failed with: {ex}\nRetrying...");
SendHelixJob.cs (16)
267Log.LogMessage(MessageImportance.High, $"Sending Job to {TargetQueue}..."); 270ISentJob job = await def.SendAsync(msg => Log.LogMessageFromText(msg, MessageImportance.Normal), cancellationToken); 344Log.LogMessage(MessageImportance.Low, $"Adding work item '{name}'"); 353Log.LogMessage(MessageImportance.Low, $" Command: '{commands[0]}'"); 361Log.LogMessage(MessageImportance.Low, $" Command File: '{commandFile}'"); 364Log.LogMessage(MessageImportance.Low, $" {c}"); 375Log.LogMessage(MessageImportance.Low, $" Uri Payload: '{payloadUri}'"); 380Log.LogMessage(MessageImportance.Low, $" Directory Payload: '{payloadDirectory}'"); 385Log.LogMessage(MessageImportance.Low, $" Archive Payload: '{payloadArchive}'"); 390Log.LogMessage(MessageImportance.Low, " Empty Payload"); 400Log.LogMessage(MessageImportance.Low, $" Timeout: '{timeout}'"); 409Log.LogMessage(MessageImportance.Low, " Default Timeout"); 514Log.LogMessage(MessageImportance.Low, $"Adding Correlation Payload URI '{uri}', destination '{destination}'"); 535MessageImportance.Low, 555MessageImportance.Low, 562MessageImportance.Low,
StopAzurePipelinesTestRun.cs (1)
26Log.LogMessage(MessageImportance.High, $"Stopping Azure Pipelines Test Run {TestRunName} (Results: {CollectionUri}{TeamProject}/_build/results?buildId={BuildId}&view=ms.vss-test-web.build-test-results-tab )");
WaitForHelixJobCompletion.cs (2)
45Log.LogMessage(MessageImportance.High, $"Waiting for completion of job {jobName} on {queueName}{detailsUrlWhereApplicable}"); 69Log.LogMessage(MessageImportance.High, $"Job {jobName} on {queueName} is completed with {pf.Total} finished work items.");
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\AssemblyResolution.cs (1)
48Log?.LogMessage(MessageImportance.Low, $"AssemblyResolve: loaded '{fullPath}' to {AppDomain.CurrentDomain.FriendlyName}");
src\ReplacePackageParts.cs (1)
209Log.LogMessage(MessageImportance.Low, $"Part '{relativePath}' of package '{SourcePackage}' replaced with '{replacementFilePath}'.");
src\UpdatePackageVersionTask.cs (1)
81Log.LogMessage(MessageImportance.High, $"Package '{packageId}' depends on a pre-release package '{dependencyId}, {dependencyVersion}'");
Microsoft.DotNet.PackageTesting (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.SharedFramework.Sdk (4)
src\Common\Internal\BuildTask.cs (4)
65_logger.LogMessage((MessageImportance)importance, message, messageArgs); 78Low = MessageImportance.Low, 79Normal = MessageImportance.Normal, 80High = MessageImportance.High
Microsoft.DotNet.SignCheck (1)
src\Common\Internal\AssemblyResolution.cs (1)
48Log?.LogMessage(MessageImportance.Low, $"AssemblyResolve: loaded '{fullPath}' to {AppDomain.CurrentDomain.FriendlyName}");
Microsoft.DotNet.SignTool (40)
src\BatchSignUtil.cs (13)
96_log.LogMessage(MessageImportance.High, "Build artifacts signed and validated."); 130_log.LogMessage(MessageImportance.High, $"Round {round}: Signing {filesToSign.Length} files."); 143_log.LogMessage(MessageImportance.Low, $"{file} {collisionIdInfo}"); 162_log.LogMessage(MessageImportance.High, $"Round {round}: Signing {enginesToSign.Length} engines."); 171_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.FullPath}"); 197_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.FullPath}"); 230_log.LogMessage(MessageImportance.High, $"Repacking {repackCount} containers."); 255_log.LogMessage(MessageImportance.High, $"Repacking {smallRepackList.Count} containers in parallel."); 268_log.LogMessage(MessageImportance.High, $"Repacking {largeRepackList.Count} large containers in serial."); 561_log.LogMessage(MessageImportance.Low, $"Assembly {file.FullPath} is signed properly"); 569_log.LogMessage(MessageImportance.Low, $"Skipping signature verification of {file.FullPath} on non-Linux platform."); 619_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} has a signature marker."); 641_log.LogMessage(MessageImportance.Low, $"Assembly {file.FullPath} strong-name signature is valid.");
src\Configuration.cs (13)
237_log.LogMessage(MessageImportance.Low, $"Caching file {fileSignInfo.FileContentKey.FileName} {fileSignInfo.FileContentKey.StringHash}"); 295_log.LogMessage(MessageImportance.Low, $"Ignoring zero length file: {file.FullPath}"); 410_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} does not have a signature marker."); 414_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} has a signature marker."); 422_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is not digitally signed."); 426_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is digitally signed."); 434_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is not signed."); 438_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is signed."); 446_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} does not have a signature block."); 450_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} has a signature block."); 464_log.LogMessage(MessageImportance.Low, $"File configured to not be signed: {file.FullPath}{fileSpec}"); 514_log.LogMessage(MessageImportance.High, $"{code.ToString()}: {warning}"); 529_log.LogMessage(MessageImportance.Low, $"Ignoring non-signable file: {file.FullPath}");
src\SignToolTask.cs (6)
183Log.LogMessage(MessageImportance.High, "SignToolTask execution finished."); 300Log.LogMessage(MessageImportance.High, "SignToolTask starting."); 301Log.LogMessage(MessageImportance.High, $"DryRun: {DryRun}"); 302Log.LogMessage(MessageImportance.High, $"Signing mode: { (TestSign ? "Test" : "Real") }"); 303Log.LogMessage(MessageImportance.High, $"MicroBuild signing logs will be in (Signing*.binlog): {LogDir}"); 304Log.LogMessage(MessageImportance.High, $"MicroBuild signing configuration will be in (Round*.proj): {TempDir}");
src\VerifySignatures.cs (2)
37log.LogMessage(MessageImportance.Low, $"Skipping signature verification of {filePath} on non-Linux platform."); 76log.LogMessage(MessageImportance.Low, $"Failed to verify signature of {filePath} with the following error: {e}");
src\ZipData.cs (6)
174log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.FullPath} -> {relativeName}"); 181log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.FullPath} to {FileSignInfo.FullPath} -> {relativeName}."); 218log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.FullPath} -> {relativeName}"); 221log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.FullPath} to {file}."); 346log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.FullPath} to {FileSignInfo.FullPath} -> {relativeName}."); 350log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.FullPath} -> {relativeName}");
Microsoft.DotNet.SourceBuild.Tasks (12)
src\UsageReport\ValidateUsageAgainstBaseline.cs (3)
108MessageImportance.High, 117MessageImportance.High, 145MessageImportance.High,
src\UsageReport\WritePackageUsageData.cs (9)
87Log.LogMessage(MessageImportance.High, "Writing package usage data..."); 100Log.LogMessage(MessageImportance.Low, "Finding set of RIDs..."); 107Log.LogMessage(MessageImportance.Low, "Reading package identities..."); 138Log.LogMessage(MessageImportance.Low, "Finding project.assets.json files..."); 148Log.LogMessage(MessageImportance.Low, "Archiving project.assets.json files..."); 174Log.LogMessage(MessageImportance.Low, "Reading usage info..."); 224Log.LogMessage(MessageImportance.Low, "Searching for unused packages..."); 242Log.LogMessage(MessageImportance.Low, $"Writing data to '{DataFile}'..."); 258MessageImportance.High,
Microsoft.DotNet.SwaggerGenerator.MSBuild (5)
GenerateSwaggerCode.cs (5)
59Log.LogMessage(MessageImportance.Low, $"Reading swagger document {SwaggerDocumentUri}"); 70Log.LogMessage(MessageImportance.Low, $"Generating client code model"); 74Log.LogMessage(MessageImportance.Low, $"Generating code files for language '{options.LanguageName}'"); 78Log.LogMessage(MessageImportance.High, $"Generating {SwaggerDocumentUri} -> {OutputDirectory}"); 88Log.LogMessage(MessageImportance.Normal, $"Writing file '{file.FullName}'");
Microsoft.DotNet.VersionTools.Tasks (6)
MsBuildTraceListener.cs (3)
54_log.LogMessage(MessageImportance.High, fullMessage); 57_log.LogMessage(MessageImportance.Normal, fullMessage); 60_log.LogMessage(MessageImportance.Low, fullMessage);
UpdateToRemoteDependencies.cs (3)
31MessageImportance.Low, 50MessageImportance.Normal, 55Log.LogMessage(MessageImportance.Normal, "No changes performed.");
Microsoft.Extensions.ApiDescription.Client.Tests (2)
MockBuildEngine.cs (2)
26internal MessageImportance MinimumMessageImportance { get; set; } = MessageImportance.Low;
Microsoft.Maui.Controls.Build.Tasks (2)
DebugXamlCTask.cs (1)
7using static Microsoft.Build.Framework.MessageImportance;
XamlCTask.cs (1)
11using static Microsoft.Build.Framework.MessageImportance;
Microsoft.Maui.Resizetizer (20)
AsyncTask.cs (5)
98 public void LogMessage(string message) => LogMessage(message, importance: MessageImportance.Normal); 102 public void LogDebugMessage(string message) => LogMessage(message, importance: MessageImportance.Low); 104 public void LogDebugMessage(string message, params object[] messageArgs) => LogMessage(string.Format(message, messageArgs), importance: MessageImportance.Low); 106 public void LogMessage(string message, MessageImportance importance = MessageImportance.Normal)
GenerateSplashAndroidResources.cs (7)
31 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath); 36 Log.LogMessage(MessageImportance.Low, $"Splash Screen: No images found."); 71 Log.LogMessage(MessageImportance.Low, $"Splash Screen Resize: " + dpi); 79 Log.LogMessage(MessageImportance.Low, $"Splash Screen Copy: " + dpi); 91 Log.LogMessage(MessageImportance.Low, $"Splash Screen Colors: " + colorsFile); 115 Log.LogMessage(MessageImportance.Low, $"Splash Screen Drawable: " + drawableFile); 141 Log.LogMessage(MessageImportance.Low, $"Splash Screen Drawable (v31): " + drawableFile);
GenerateSplashAssets.cs (3)
29 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath); 33 Log.LogMessage(MessageImportance.Low, $"Splash Screen: " + dpi); 37 Log.LogMessage(MessageImportance.Low, $"Splash Screen Destination: " + destination);
GenerateSplashStoryboard.cs (5)
26 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath); 62 Log.LogMessage(MessageImportance.Low, $"Splash Screen Resize: " + dpi); 70 Log.LogMessage(MessageImportance.Low, $"Splash Screen Copy: " + dpi); 80 Log.LogMessage(MessageImportance.Low, $"Splash Screen Storyboard: " + storyboardFile); 101 Log.LogMessage(MessageImportance.Low, $"Splash Screen Storyboard (empty): " + storyboardFile);
MSBuild (27)
LogMessagePacketBase.cs (8)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 633LoggingEventType.TaskCommandLineEvent => new TaskCommandLineEventArgs(null, null, MessageImportance.Normal), 967MessageImportance importance = taskCommandLineEventArgs.Importance; 982MessageImportance importance = buildMessageEventArgs.Importance; 1331MessageImportance importance = MessageImportance.Normal; 1349MessageImportance importance = MessageImportance.Normal;
OutOfProcTaskHostNode.cs (4)
532public override bool LogsMessagesOfImportance(MessageImportance importance) => true; 1038LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentHeader"); 1048LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty); 1205private void LogMessageFromResource(MessageImportance importance, string messageResource, params object[] messageArgs)
TerminalLogger\TerminalLogger.cs (1)
822if (message is not null && e.Importance == MessageImportance.High)
XMake.cs (14)
1548MessageImportance.Low, 1740MessageImportance.Low), 1745MessageImportance.Low), 1750MessageImportance.Low), 1755MessageImportance.Low), 1760MessageImportance.Low), 1772MessageImportance.Low)); 1784MessageImportance.Low)); 1794MessageImportance.High)); 2842new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedRedirected"), MessageImportance.Low)); 2850new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedNotSupported"), MessageImportance.Low)); 2857new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedDisabled"), MessageImportance.Low)); 2932new BuildManager.DeferredBuildMessage($"The environment variable MSBUILDTERMINALLOGGER was set to {terminalLoggerArg}.", MessageImportance.Low)); 2941new BuildManager.DeferredBuildMessage($"The environment variable MSBUILDLIVELOGGER was set to {liveLoggerArg}.", MessageImportance.Low));
MSBuildTaskHost (11)
LogMessagePacketBase.cs (8)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 633LoggingEventType.TaskCommandLineEvent => new TaskCommandLineEventArgs(null, null, MessageImportance.Normal), 967MessageImportance importance = taskCommandLineEventArgs.Importance; 982MessageImportance importance = buildMessageEventArgs.Importance; 1331MessageImportance importance = MessageImportance.Normal; 1349MessageImportance importance = MessageImportance.Normal;
OutOfProcTaskHostNode.cs (3)
1038LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentHeader"); 1048LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty); 1205private void LogMessageFromResource(MessageImportance importance, string messageResource, params object[] messageArgs)
PresentationBuildTasks (30)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (11)
127Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 148Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult); 158Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]); 178Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 216Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1)); 946Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile); 1137Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath); 1207Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 1208Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 1480Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec); 1489Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (10)
89Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 133Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 566Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile)); 567Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 579Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile); 594Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile); 629Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 685Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile); 732Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 751Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (4)
178Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerating), resourcesFile); 192Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReadResourceFile), resFileName); 193Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourceId), resourceId); 200Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerated), resourcesFile);
MS\Internal\Tasks\CompilerWrapper.cs (1)
362_taskLogger.LogMessageFromResources(MessageImportance.Low, nameof(SR.FileResolved), sourceFileInfo.OriginalFilePath, newRelativeFilePath, newSourceDir);
MS\Internal\Tasks\TaskHelper.cs (4)
53log.LogMessage(MessageImportance.Low,Environment.NewLine); 54log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskLogo), taskName, avalonFileVersion); 55log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskRight)); 56log.LogMessage(MessageImportance.Low, Environment.NewLine);
ProjectCachePlugin (4)
AssemblyMockCache.cs (4)
27logger.LogMessage($"{nameof(AssemblyMockCache)}: BeginBuildAsync", MessageImportance.High); 48logger.LogMessage($"{nameof(AssemblyMockCache)}: GetCacheResultAsync for {buildRequest.ProjectFullPath}", MessageImportance.High); 59logger.LogMessage($"{nameof(AssemblyMockCache)}: EndBuildAsync", MessageImportance.High); 73pluginLoggerBase?.LogMessage($"{errorLocation} is going to throw an exception", MessageImportance.High);