Exemplo n.º 1
0
 public Log4NetDatadogLogEvent(ILoggingEventDuckBase logEvent, DateTime timestamp)
 {
     _logEvent  = logEvent;
     _timestamp = timestamp;
 }
Exemplo n.º 2
0
 public static void FormatLogEvent(LogFormatter logFormatter, StringBuilder sb, ILoggingEventDuckBase logEntry, DateTime timestamp)
 {
     logFormatter.FormatLog(
         sb,
         logEntry,
         timestamp,
         logEntry.RenderedMessage,
         eventId: null,
         logEntry.Level.ToStandardLevelString(),
         exception: null, // We can't pass the exception here, as it might be null if the event has been serialized
         (JsonTextWriter w, in ILoggingEventDuckBase e) => RenderProperties(w, in e));
 }