protected virtual void QueueOutputEvent(MessageImportance importance, BuildEventArgs buildEvent)
{
if (buildEvent == null)
throw new ArgumentNullException("buildEvent");
// NOTE: This may run on a background thread!
if (LogAtImportance(importance) && !string.IsNullOrEmpty(buildEvent.Message))
{
StringBuilder message = new StringBuilder(this.currentIndent + buildEvent.Message.Length);
if (this.currentIndent > 0)
{
message.Append('\t', this.currentIndent);
}
message.AppendLine(buildEvent.Message);
QueueOutputText(message.ToString());
}
}