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

QueueOutputEvent() protected method

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