title: Logging from XamlTaskFactory with `MessageImportance.high`
body: <p>I'm using <code>XamlTaskFactory</code> to create an MSBuild Task which runs an external command line utility with a set of parameters. This command line utility is sending its output to standard output.  </p>
  
  <p>Tasks created with <code>XamlTaskFactory</code> inherit from <code>ToolTask</code>, which <a href="https://github.com/Microsoft/msbuild/blob/bec6ba780d0b2f74e3b898f09fe7787d709b2bb5/src/Utilities/ToolTask.cs#L376" rel="nofollow">sends stdout to log, but <strong>with low importance</strong> by default</a>.</p>
  
  <p>I would like to send my task's stdout to log <strong>with high importance</strong>. (and only affect this task's logging importance).<br>
  Unfortunately, tasks created with <code>XamlTaskFactory</code> do not override the <a href="https://msdn.microsoft.com/en-us/library/microsoft.build.utilities.tooltask.standardoutputloggingimportance%28v=vs.100%29.aspx?f=255&amp;MSPPError=-2147217396" rel="nofollow"><code>StandardOutputLoggingImportance</code></a> attribute, so stdout from such tasks is always sent to log with low importance.</p>
  
  <h3>Is there a way to create a new MsBuild inline task (using <code>CodeTaskFactory</code>) which somehow inherits and extends my task (which was created with <code>XamlTaskFactory</code>) and overrides <code>StandardOutputLoggingImportance</code> property?</h3>
  
  <p>If I could do that, logs from my task would be sent with high importance. But I'm not sure how to inherit a custom task from another task that was created with <code>XamlTaskFactory</code>...   </p>
  
  <p>Other ideas how to achieve this are welcome.</p>
  
  <hr>
  
  <h2>Update</h2>
  
  <p>I just missed a very simple solution:<br>
  set <code>StandardErrorImportance="High"</code> on the task (which was created with <code>XamlTaskFactory</code>).  </p>
  
  <p>A lot of other attributes can be set as described in <a href="https://msdn.microsoft.com/en-us/library/microsoft.build.tasks.xaml.xamldatadriventooltask.aspx?f=255&amp;MSPPError=-2147217396" rel="nofollow"><code>XamlDataDrivenToolTask</code> Class documentation on MSDN</a>.</p>