public LogEntry(IBufferLogEntry buffer) : this(buffer.Source, buffer.Tag, buffer.EventType, buffer.Title, buffer.Payload, buffer.TraceOptions, buffer.IndentLevel, buffer.IndentSize) { }
/// <summary>Logs the <see cref="Buffer"/>.</summary> public virtual void LogBuffer() { Log(Buffer); _buffer = null; }
/// <summary>Logs the given entry if it passes the logfilter.</summary> /// <param name="logEntry">Log entry to log.</param> public virtual void Log(IBufferLogEntry logEntry) => Log(new LogEntry(logEntry));