public static void FormatLogEvent(LogFormatter logFormatter, StringBuilder sb, ILogEvent logEvent) { var message = logEvent.RenderMessage(); logFormatter.FormatLog( sb, logEvent, logEvent.Timestamp.UtcDateTime, message, eventId: null, GetLogLevelString(logEvent.Level), logEvent.Exception, (JsonTextWriter w, in ILogEvent e) => RenderProperties(w, e)); }
public void Emit(ILogEvent logEvent) { Logs.Add(logEvent.RenderMessage()); }