1048 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; 276 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 (203)
BackEnd\BuildManager\BuildManager.cs (7)
396public MessageImportance Importance { get; } 402public DeferredBuildMessage(string text, MessageImportance importance) 409public DeferredBuildMessage(string text, MessageImportance importance, string filePath) 572loggingService.LogComment(buildEventContext: BuildEventContext.Invalid, MessageImportance.Normal, "BuildCheckEnabled"); 641loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles)); 646loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile); 3219loggingService?.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)
253_loggingService.LogComment(buildEventContext, MessageImportance.High, "LoadingProjectCachePlugin", pluginTypeName); 516_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithDefaultTargets", buildRequest.ProjectFullPath); 520_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithTargetNames", buildRequest.ProjectFullPath, targetNames); 578_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithDefaultTargets", buildRequest.ProjectFullPath); 582_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithTargetNames", buildRequest.ProjectFullPath, targetNames); 589_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.GetPropertyValue(ReservedPropertyNames.projectName)); 596_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithDefaultTargets", buildRequest.ProjectFullPath); 600_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithTargetNames", buildRequest.ProjectFullPath, targetNames); 607_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithDefaultTargets", buildRequest.ProjectFullPath); 611_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithTargetNames", buildRequest.ProjectFullPath, targetNames); 818_loggingService.LogComment(buildEventContext, MessageImportance.Low, "ProjectCacheEndBuild"); 906public override void LogMessage(string message, MessageImportance? messageImportance = null) 910messageImportance ?? 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)
328loggingContext.LogComment(MessageImportance.Low, "SDKResolverNullMessage", sdkResolver.Name, sdk.ToString()); 356loggingContext.LogComment(MessageImportance.Low, "SucceededToResolveSDK", sdk.ToString(), sdkResolver.Name, result.Path ?? "null", result.Version ?? "null"); 372else if (loggingContext.LoggingService.MinimumRequiredMessageImportance >= MessageImportance.Low) 377loggingContext.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)
48checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckRegistered", checkCandidate.Name, checkCandidate.Assembly); 54.ForEach(t => checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckBaseTypeNotAssignable", t.Name, t.Assembly)); 73checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckFailedRuleLoading", ex.Message);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (3)
172checkContext.DispatchAsCommentFromText(MessageImportance.Low, $"BuildCheck run times{Environment.NewLine}"); 174checkContext.DispatchAsCommentFromText(MessageImportance.Low, infraData); 176checkContext.DispatchAsCommentFromText(MessageImportance.Low, checkData);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
115checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckFailedAcquisition", acquisitionData.AssemblyPath); 202checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckSuccessfulAcquisition", instance.FriendlyName); 329checkContext.DispatchAsCommentFromText(MessageImportance.High, $"Dismounting check '{checkToRemove.FriendlyName}'"); 338checkContext.DispatchAsCommentFromText(MessageImportance.Normal, $"Dismounting check '{checkToRemove.FriendlyName}'. The check has exceeded the maximum number of results allowed. Any additional results will not be displayed.");
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (3)
42public void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs) 49public void DispatchAsCommentFromText(MessageImportance importance, string message) 52private void DispatchAsCommentFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
32public void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs) 36public void DispatchAsCommentFromText(MessageImportance importance, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
27void DispatchAsComment(MessageImportance importance, string messageResourceName, params object?[] messageArgs); 42void DispatchAsCommentFromText(MessageImportance importance, string message);
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)
1418result.Importance = (MessageImportance)ReadInt32();
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
236MessageImportance.Normal, 249MessageImportance.Normal, 826if (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)
255public bool LogsMessagesOfImportance(MessageImportance importance) 274Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 276LogMessage(MessageImportance.Normal, message, messageArgs); 290public void LogMessage(MessageImportance importance, string message, params object[] messageArgs) 358MessageImportance importance, 469Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 471LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs); 485public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs) 591LogCommandLine(MessageImportance.Low, commandLine); 601public void LogCommandLine(MessageImportance importance, string commandLine) 1306return LogMessagesFromFile(fileName, MessageImportance.Low); 1318public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance) 1345public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance) 1373public 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)); 461MessageImportance.High); 476MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs(_immediateMessageString, MessageImportance.High)); 477MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("High importance message!", MessageImportance.High)); 478MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Normal importance message!", MessageImportance.Normal)); 479MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Low importance message!", MessageImportance.Low)); 489MessageImportance.High, 494MessageImportance.High, 499MessageImportance.High, 590MessageRaised?.Invoke(_eventSender, MakeTaskCommandLineEventArgs("Task Command Line.", MessageImportance.High)); 605MessageRaised?.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)
758resolverContext.Logger.LogMessage("MockSdkResolver1 running", MessageImportance.Normal); 777resolverContext.Logger.LogMessage("MockSdkResolver2 running", MessageImportance.Normal); 796resolverContext.Logger.LogMessage("MockSdkResolverWithResolvableSdkPattern1 running", MessageImportance.Normal); 815resolverContext.Logger.LogMessage("MockSdkResolverWithResolvableSdkPattern2 running", MessageImportance.Normal); 858resolverContext.Logger.LogMessage("MockSdkResolverThrows running", MessageImportance.Normal); 871resolverContext.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 (43)
AssemblyLoadBuildEventArgs.cs (2)
26MessageImportance importance = MessageImportance.Low)
BuildCheck\BuildCheckEventArgs.cs (1)
230: base(message: result.FormatMessage(), file: result.Location.File, lineNumber: result.Location.Line, columnNumber: result.Location.Column, MessageImportance.High)
BuildMessageEventArgs.cs (10)
67MessageImportance importance) 84MessageImportance importance, 104MessageImportance importance, 137MessageImportance importance) 169MessageImportance importance, 203MessageImportance importance, 223MessageImportance importance) 232private MessageImportance importance; 288importance = (MessageImportance)reader.ReadInt32(); 309public MessageImportance Importance
CriticalBuildMessageEventArgs.cs (1)
111: 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)
44importance: 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)
73importance: 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 (207)
AssemblyDependency\GenerateBindingRedirects.cs (2)
137Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.CreatingBindingRedirectionFile", OutputAppConfigFile.ItemSpec); 371Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.ProcessingSuggestedRedirect", redirectStr, maxVerStr);
AssemblyDependency\ResolveAssemblyReference.cs (42)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 1143Log.LogMessage(MessageImportance.Low, details); 1195MessageImportance.High, 1277MessageImportance messageImportance = MessageImportance.Low; 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)
178MessageImportance.Low,
AssignProjectConfiguration.cs (2)
204Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationResolutionSuccess", projectRef.ItemSpec, resolvedReference.GetMetadata(attrFullConfiguration)); 235Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationUnresolved", projectRef.ItemSpec);
CodeTaskFactory.cs (1)
698_log.LogMessageFromResources(MessageImportance.Low, "CodeTaskFactory.HaveReflectionOnlyAssembly", assemblyFile);
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)
314Log.LogMessageFromResources(MessageImportance.Normal, "Exec.CommandFailedNoErrorCode", Command, ExitCode); 366protected override void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) 652protected override MessageImportance StandardErrorLoggingImportance => MessageImportance.High; 661protected 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 (19)
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); 1744Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.SeparateAppDomainBecauseNeverLockTypeAssembliesTrue"); 1831MessageImportance.Low, 1875MessageImportance.Low, 1905MessageImportance.Low, 1916MessageImportance.Low, 1940MessageImportance.Low, 3050_logger.LogMessageFromResources(MessageImportance.Low, "GenerateResource.ReadResourceMessage", reader.resources.Count, filename);
GetCompatiblePlatform.cs (1)
67Log.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.DisplayChosenPlatform", AssignedProjectsWithPlatform[i].ItemSpec, buildProjectReferenceAs);
GetFrameworkSDKPath.cs (16)
50MessageImportance.High, 60Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_path); 87MessageImportance.High, 97Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version20Path); 120MessageImportance.High, 130Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version35Path); 153MessageImportance.High, 163Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version40Path); 186MessageImportance.High, 196Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version45Path); 219MessageImportance.High, 229Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version451Path); 252MessageImportance.High, 262Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version46Path); 285MessageImportance.High, 295Log.LogMessageFromResources(MessageImportance.Low, "GetFrameworkSdkPath.FoundSDK", s_version461Path);
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);
RegisterAssembly.cs (5)
169Log.LogMessage(MessageImportance.Low, msg); 174Log.LogMessage(MessageImportance.Low, msg); 213Log.LogMessageFromResources(MessageImportance.Low, "RegisterAssembly.RegisteringAssembly", assemblyPath); 240Log.LogMessageFromResources(MessageImportance.Low, "RegisterAssembly.RegisteringTypeLib", typeLibPath); 263Log.LogMessageFromResources(MessageImportance.Low, "RegisterAssembly.TypeLibUpToDate", typeLibPath);
RemoveDir.cs (2)
73Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.Removing", directory.ItemSpec); 102Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.SkippingNonexistentDirectory", directory.ItemSpec);
ResGen.cs (1)
223Log.LogMessageFromResources(MessageImportance.Low, "ResGen.NoInputFiles");
ResolveComReference.cs (11)
333Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.NotUsingCacheFile", StateFile ?? String.Empty); 340Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.UsingCacheFile", StateFile ?? String.Empty); 472Log.LogMessageFromResources(MessageImportance.Normal, "ResolveComReference.BadTargetFrameworkFormat", version); 806Log.LogMessageFromResources(MessageImportance.High, "ResolveComReference.TreatingTlbOfActiveXAsNonEmbedded", tlbRefInfo.taskItem.ItemSpec, axRefInfo.taskItem.ItemSpec); 824Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.AddingMissingTlbReference", axRefInfo.taskItem.ItemSpec); 894Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.Resolving", referenceInfo.taskItem.ItemSpec, referenceInfo.taskItem.GetMetadata(ComReferenceItemMetadataNames.wrapperTool)); 915Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolvedReference", referenceInfo.taskItem.ItemSpec, wrapperInfo.path); 1073Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.RemappingAdoTypeLib", oldAttr.wMajorVerNum, oldAttr.wMinorVerNum); 1664Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ScanningDependencies", reference.SourceItemSpec); 1712Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolvingDependency", 1721Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolvedDependentComReference",
ResolveNativeReference.cs (5)
129Log.LogMessageFromResources(MessageImportance.Low, "ResolveNativeReference.ResolveReference", item.ItemSpec); 132Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", searchPath); 139Log.LogMessageFromResources(MessageImportance.Low, "ResolveNativeReference.ResolveReference", item.ItemSpec); 140Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", path); 210Log.LogMessageFromResources(MessageImportance.Low, "ResolveNativeReference.Comment", path);
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);
TlbReference.cs (3)
399Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolvedDependentComReference", 427Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolutionMessage", ReferenceInfo.SourceItemSpec, ReferenceInfo.strippedTypeLibPath, eventMsg); 432Log.LogMessageFromResources(MessageImportance.Low, "ResolveComReference.ResolutionMessage", ReferenceInfo.SourceItemSpec, ReferenceInfo.strippedTypeLibPath, eventMsg);
Touch.cs (2)
22private MessageImportance messageImportance; 140messageImportance = MessageImportance.Normal;
UnregisterAssembly.cs (3)
155Log.LogMessageFromResources(MessageImportance.Low, "UnregisterAssembly.UnregisteringAssembly", assemblyPath); 229Log.LogMessageFromResources(MessageImportance.Low, "UnregisterAssembly.UnregisteringTypeLib", typeLibPath); 283Log.LogMessageFromResources(MessageImportance.Low, "UnregisterAssembly.UnregisterTlbFileDoesNotExist", typeLibPath);
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 (35)
TaskLoggingHelper.cs (14)
255public bool LogsMessagesOfImportance(MessageImportance importance) 274Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 276LogMessage(MessageImportance.Normal, message, messageArgs); 290public void LogMessage(MessageImportance importance, string message, params object[] messageArgs) 358MessageImportance importance, 469Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?"); 471LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs); 485public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs) 591LogCommandLine(MessageImportance.Low, commandLine); 601public void LogCommandLine(MessageImportance importance, string commandLine) 1306return LogMessagesFromFile(fileName, MessageImportance.Low); 1318public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance) 1345public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance) 1373public 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;
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(); 132t.Log.LogMessageFromText("{1", MessageImportance.High); 189t.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 (65)
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\PublishArtifactsInManifest.cs (1)
318Log.LogMessage(MessageImportance.High, $"Creating a task to publish assets from {manifestFullPath}");
src\PublishArtifactsInManifestBase.cs (37)
346Log.LogMessage(MessageImportance.High, "\nPersisting new locations of assets in the Build Asset Registry."); 355Log.LogMessage(MessageImportance.High, "\nCompleted persisting of new asset locations..."); 466Log.LogMessage(MessageImportance.High, $"Downloading symbol: {symbolPackageName} to {localSymbolPath}"); 475Log.LogMessage(MessageImportance.Normal, $"Time taken to download file to '{localSymbolPath}' is {gatherDownloadTime.ElapsedMilliseconds / 1000.0} (seconds)"); 476Log.LogMessage(MessageImportance.High, $"Successfully downloaded symbol : {symbolPackageName} to {localSymbolPath}"); 543Log.LogMessage(MessageImportance.High, "No assets to publish to symbol server were found."); 552Log.LogMessage(MessageImportance.High, "No target symbol servers match this promotion request."); 568Log.LogMessage(MessageImportance.High, 631Log.LogMessage(MessageImportance.High, "Finalizing publishing to the appropriate symbol servers. Finalizing request with lifetime of {0} days", SymbolExpirationInDays); 641Log.LogMessage(MessageImportance.High, "Deletion request {0} from symbol servers returned {1}.", requestName, result); 650Log.LogMessage(MessageImportance.High, "Finished publishing symbols to temporary azdo org. Calling registration to SymbolRequest"); 661Log.LogMessage(MessageImportance.High, "Would register request {0} to project {1} in environment {2} with visibility {3} to last {4} days.", requestName, SymbolRequestProject, env, visibility, SymbolExpirationInDays); 699Log.LogMessage(MessageImportance.High, "Exclusions file {0} not found. No exclusions will be applied.", symbolPublishingExclusionsFile); 714Log.LogMessage(MessageImportance.Normal, "Excluding the file {0} from publishing to symbol server from any package.", excludeFile); 719Log.LogMessage(MessageImportance.Normal, "No symbol exclusions were found at {0}", symbolPublishingExclusionsFile); 782Log.LogMessage(MessageImportance.High, "\nBegin publishing of packages: "); 800Log.LogMessage(MessageImportance.High, 829Log.LogMessage(MessageImportance.High, "\nCompleted publishing of packages: "); 968Log.LogMessage(MessageImportance.Low, $"Download file uri = {uri}"); 1006Log.LogMessage(MessageImportance.High, "\nBegin publishing of blobs: "); 1024Log.LogMessage(MessageImportance.High, 1047Log.LogMessage(MessageImportance.High, "\nCompleted publishing of blobs: "); 1195Log.LogMessage(MessageImportance.Low, 1221Log.LogMessage(MessageImportance.Low, $"Time taken to download file to '{localPackagePath}' is {gatherPackageDownloadTime.ElapsedMilliseconds / 1000.0} (seconds)"); 1222Log.LogMessage(MessageImportance.Low, 1246Log.LogMessage(MessageImportance.Low, $"Publishing package {localPackagePath} took {gatherPackagePublishingTime.ElapsedMilliseconds / 1000.0} (seconds)"); 1384Log.LogMessage(MessageImportance.Normal, $"Pushing local package {localPackageLocation} to target feed {feedConfig.TargetURL}"); 1400Log.LogMessage(MessageImportance.Low, $"Attempt # {attemptIndex} failed to push {localPackageLocation}, attempting to determine whether the package already existed on the feed with the same content. Nuget exit code = {nugetResult.ExitCode}"); 1409Log.LogMessage(MessageImportance.Normal, $"Package '{localPackageLocation}' already exists on '{feedConfig.TargetURL}' but has the same content; skipping push"); 1420Log.LogMessage(MessageImportance.Low, $"Hit error checking package status after failed push: '{packageStatus}'. Will retry after {RetryDelayMilliseconds * attemptIndex} ms."); 1537Log.LogMessage(MessageImportance.Low, $"Downloading blob : {fileName} to {localBlobPath}"); 1547Log.LogMessage(MessageImportance.Low, $"Time taken to download file to '{localBlobPath}' is {gatherBlobDownloadTime.ElapsedMilliseconds / 1000.0} (seconds)"); 1556Log.LogMessage(MessageImportance.Low, 1569Log.LogMessage(MessageImportance.Low, $"Publishing {localBlobPath} completed in {gatherBlobPublishingTime.ElapsedMilliseconds / 1000.0} (seconds)"); 1711Log.LogMessage(MessageImportance.Low, $"Deleting directory : {temporaryLocation}"); 1718Log.LogMessage(MessageImportance.Low, $"Unable to delete the directory because of {ex.Message} after {attempts} attempts."); 1720Log.LogMessage(MessageImportance.Low, $"Retrying to delete {temporaryLocation}, attempt number {attempts}");
src\PublishArtifactsInManifestV3.cs (3)
129Log.LogMessage(MessageImportance.High, $"Publishing to this target channel: {targetChannelConfig}"); 172Log.LogMessage(MessageImportance.High, $"Target feed config: {feedConfig}"); 215Log.LogMessage(MessageImportance.High, "Publishing finished with success.");
src\PushToBuildStorage.cs (6)
120Log.LogMessage(MessageImportance.High, "Performing push to local artifacts storage."); 124Log.LogMessage(MessageImportance.High, "Performing push to Azure DevOps artifacts storage."); 129Log.LogMessage(MessageImportance.High, $"It's no longer necessary to specify a value for the {nameof(AssetsTemporaryDirectory)} property. " + 307Log.LogMessage(MessageImportance.High, 312Log.LogMessage(MessageImportance.High, 317Log.LogMessage(MessageImportance.High,
src\TaskTracer.cs (4)
28_log.LogMessage(MessageImportance.High, format, arguments); 38_log.LogMessage(MessageImportance.Normal, format, arguments); 68_log.LogMessage(_verbose ? MessageImportance.Normal : MessageImportance.Low, format, arguments);
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 (2)
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 (34)
src\BatchSignUtil.cs (12)
95_log.LogMessage(MessageImportance.High, "Build artifacts signed and validated."); 129_log.LogMessage(MessageImportance.High, $"Round {round}: Signing {filesToSign.Length} files."); 142_log.LogMessage(MessageImportance.Low, $"{file} {collisionIdInfo}"); 161_log.LogMessage(MessageImportance.High, $"Round {round}: Signing {enginesToSign.Length} engines."); 170_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.FullPath}"); 196_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.FullPath}"); 229_log.LogMessage(MessageImportance.High, $"Repacking {repackCount} containers."); 254_log.LogMessage(MessageImportance.High, $"Repacking {smallRepackList.Count} containers in parallel."); 267_log.LogMessage(MessageImportance.High, $"Repacking {largeRepackList.Count} large containers in serial."); 549_log.LogMessage(MessageImportance.Low, $"Assembly {file.FullPath} is signed properly"); 596_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} has a signature marker."); 618_log.LogMessage(MessageImportance.Low, $"Assembly {file.FullPath} strong-name signature is valid.");
src\Configuration.cs (10)
237_log.LogMessage(MessageImportance.Low, $"Caching file {fileSignInfo.FileContentKey.FileName} {fileSignInfo.FileContentKey.StringHash}"); 402_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} does not have a signature marker."); 406_log.LogMessage(MessageImportance.Low, $"Container {file.FullPath} has a signature marker."); 414_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is not digitally signed."); 418_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} is digitally signed."); 426_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} does not have a signature block."); 430_log.LogMessage(MessageImportance.Low, $"File {file.FullPath} has a signature block."); 444_log.LogMessage(MessageImportance.Low, $"File configured to not be signed: {file.FullPath}{fileSpec}"); 494_log.LogMessage(MessageImportance.High, $"{code.ToString()}: {warning}"); 509_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\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}."); 343log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.FullPath} -> {relativeName}"); 348log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.FullPath} to {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;
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)
799if (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)
136Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 157Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult); 167Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]); 187Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 225Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1)); 955Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile); 1146Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath); 1216Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 1217Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 1489Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec); 1498Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (10)
95Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 139Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 572Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile)); 573Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 585Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile); 600Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile); 635Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 691Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile); 738Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 757Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (4)
184Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerating), resourcesFile); 198Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReadResourceFile), resFileName); 199Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourceId), resourceId); 206Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerated), resourcesFile);
MS\Internal\Tasks\CompilerWrapper.cs (1)
366_taskLogger.LogMessageFromResources(MessageImportance.Low, nameof(SR.FileResolved), sourceFileInfo.OriginalFilePath, newRelativeFilePath, newSourceDir);
MS\Internal\Tasks\TaskHelper.cs (4)
60log.LogMessage(MessageImportance.Low,Environment.NewLine); 61log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskLogo), taskName, avalonFileVersion); 62log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskRight)); 63log.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);