Example #1
0
        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));
        }
Example #2
0
 public void Emit(ILogEvent logEvent)
 {
     Logs.Add(logEvent.RenderMessage());
 }