Beispiel #1
0
 public LogEntry(IBufferLogEntry buffer)
     : this(buffer.Source,
            buffer.Tag,
            buffer.EventType,
            buffer.Title,
            buffer.Payload,
            buffer.TraceOptions,
            buffer.IndentLevel,
            buffer.IndentSize)
 {
 }
Beispiel #2
0
 /// <summary>Logs the <see cref="Buffer"/>.</summary>
 public virtual void LogBuffer()
 {
     Log(Buffer);
     _buffer = null;
 }
Beispiel #3
0
 /// <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));