Esempio n. 1
0
        /// <summary>
        /// This is the method that does the main work of logging an event
        /// when one is sent to this logger.
        /// </summary>
        private void LogEvent(object sender, BuildEventArgs buildEvent)
        {
            // Fill in the Message text
            if (OutputWindowPane != null && !String.IsNullOrEmpty(buildEvent.Message))
            {
                StringBuilder msg = new StringBuilder(_currentIndent + buildEvent.Message.Length + 1);
                if (_currentIndent > 0)
                {
                    msg.Append('\t', _currentIndent);
                }

                string txt = buildEvent.Message;

                msg.AppendLine(txt);

                OutputWindowPane.OutputStringThreadSafe(msg.ToString());
            }
        }