示例#1
0
        public void Write(IEnumerable <LogEvent> events)
        {
            if (events == null)
            {
                return;
            }

            var sb = new StringBuilder();

            foreach (LogEvent e in events)
            {
                sb.AppendLine(TextFormatter.Format(e, _format));
            }

            using (MemoryStream ms = sb.ToString().ToMemoryStream())
            {
                _blobStorage.AppendFromStream(_documentId, ms);
            }
        }