public static RealNLog.LogEventInfo FromLogEntry(LogEntryInfo entry) { var info = new RealNLog.LogEventInfo() { Exception = entry.Exception, Level = ToNLogLevel(entry.Level), Message = entry.Message, TimeStamp = entry.TimeStamp }; info.LoggerName = entry.LoggerName; if (entry.Data != null) { info.Data(entry.GetFormattedData()); } if (entry.StackTrace != null) { info.SetStackTrace(entry.StackTrace, 0); } info.UniqueLogId(entry.Id); return(info); }
public void LogEntry(LogEntryInfo entry) { entry.LoggerName = _scopeName; entry.Message = " " + entry.Message; _parent.LogEntry(entry); }
public void LogEntry(LogEntryInfo entry) { }
public void LogEntry(LogEntryInfo entry) { entry.LoggerName = m_logger.Name; m_logger.Log(LogEventInfoExtensions.FromLogEntry(entry)); }