EngineServices.LogsMessagesOfImportance(MessageImportance) Method

Definition

Returns true if the given message importance is not guaranteed to be ignored by registered loggers.

C#
public virtual bool LogsMessagesOfImportance(Microsoft.Build.Framework.MessageImportance importance);

Parameters

importance
MessageImportance

The importance to check.

Returns

True if messages of the given importance should be logged, false if it's guaranteed that such messages would be ignored.

Remarks

Example: If we know that no logger is interested in Low, this method returns true for Normal and High, and returns false for Low.

Applies to

Produit Versions
MSBuild 17
MSBuild (.NET Core) 17