internal LogEntry Log(LogEntry parent, LogEntry.Type type, uint id, DateTime timestamp, int thread, string location, string text) { lock (m_sync) { m_newest = new LogEntry(m_newest, parent, type, id, timestamp, 0, location, text); if (m_breaker != null && m_breaker(m_newest)) { this.BreakHere(); } if (m_sink != null) { m_sink.Add(m_newest); } return(m_newest); } }
private LogEntry Log(LogEntry.Type type, string location, string text) { return(m_root.Log(m_scopeStartEntry, type, UniqueInteger.Get(), DateTime.Now, m_threadID, location, text)); }
/// <summary> /// Make a new log entry /// </summary> public LogEntry(LogEntry.Type type, string text, string time) { Logtype = type; Text = text; Time = time; }