protected override void Append(LoggingEvent loggingEvent) { string text = RenderLoggingEvent(loggingEvent); _buffer.Add(new ColoredItem(GetIndexForLevel(loggingEvent.Level), text)); _bufferedInvoker.Invoke(); }
protected override void Append(LoggingEvent loggingEvent) { var stringWriter = new StringWriter(CultureInfo.CurrentCulture); Layout.Format(stringWriter, loggingEvent); string text = stringWriter.ToString(); if (text.EndsWith("\r\n")) { text = text.Substring(0, text.Length - 2); } _buffer.Add(text); _bufferedInvoker.Invoke(); }