Ejemplo n.º 1
0
        /// <inheritdoc/>
        public void Emit(LogEvent logEvent)
        {
            var sb = new StringBuilder();

            using (var sw = new StringWriter(sb))
                _formatter.Format(logEvent, sw);

            _writer.Enqueue(sb.ToString());
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public void Emit(LogEvent logEvent)
        {
            var sw = new StringWriter();

            _jsonFormatter.Format(logEvent, sw);

            var message = sw.ToString();

            _writer.Enqueue(message);
        }