Esempio n. 1
0
 private static void WriteEntry(Logger logger, JobLogEntry entry)
 {
     LogEventInfo evt = new LogEventInfo(
         entry.FullEvent.Level,
         entry.FullEvent.LoggerName,
         CultureInfo.CurrentCulture,
         entry.FullEvent.FormattedMessage,
         new object[0])
         {
             TimeStamp = entry.Timestamp.LocalDateTime
         };
     logger.Log(evt);
 }
 private void WriteEntry(JobLog log, JobLogEntry entry)
 {
     Log.Log(entry.FullEvent);
 }