Microsoft.VisualStudio.Project.IdeBuildLogger.QueueOutputEvent C# (CSharp) Method

QueueOutputEvent() protected method

protected QueueOutputEvent ( MessageImportance importance, Microsoft.Build.Framework.BuildEventArgs buildEvent ) : void
importance MessageImportance
buildEvent Microsoft.Build.Framework.BuildEventArgs
return void
        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());
            }
        }