/// <inheritdoc/> public void Emit(LogEvent logEvent) { var sb = new StringBuilder(); using (var sw = new StringWriter(sb)) _formatter.Format(logEvent, sw); _writer.Enqueue(sb.ToString()); }
/// <inheritdoc/> public void Emit(LogEvent logEvent) { var sw = new StringWriter(); _jsonFormatter.Format(logEvent, sw); var message = sw.ToString(); _writer.Enqueue(message); }