Exemplo n.º 1
0
        public async Task WriteAsync(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())
            {
                await _blobStorage.AppendFromStreamAsync(_documentId, ms);
            }
        }