Class TransformLog

Namespace
Pixie
Assembly
Pixie.dll

A log implementation that applies a sequence of transformations to log entries before sending them to another log.

public sealed class TransformLog : ILog
Inheritance
TransformLog
Implements
Inherited Members
Extension Methods

Constructors

TransformLog(ILog, IReadOnlyList<Func<LogEntry, LogEntry>>)

Creates a log that applies a sequence of transformations in order to each log entry before sending it to another log.

public TransformLog(ILog outputLog, IReadOnlyList<Func<LogEntry, LogEntry>> transforms)

Parameters

outputLog ILog

A log to which output is sent.

transforms IReadOnlyList<Func<LogEntry, LogEntry>>

A list of transformations which are to be applied to each log entry in order.

TransformLog(ILog, Func<LogEntry, LogEntry>)

Creates a log that applies a sequence of transformations in order to each log entry before sending it to another log.

public TransformLog(ILog outputLog, Func<LogEntry, LogEntry> transform)

Parameters

outputLog ILog

A log to which output is sent.

transform Func<LogEntry, LogEntry>

The transform to apply to each log entry.

TransformLog(ILog, params Func<LogEntry, LogEntry>[])

Creates a log that applies a sequence of transformations in order to each log entry before sending it to another log.

public TransformLog(ILog outputLog, params Func<LogEntry, LogEntry>[] transforms)

Parameters

outputLog ILog

A log to which output is sent.

transforms Func<LogEntry, LogEntry>[]

A list of transformations which are to be applied to each log entry in order.

Properties

OutputLog

Gets the log to which this transformation log sends transformed entries.

public ILog OutputLog { get; }

Property Value

ILog

The output log.

Methods

Log(LogEntry)

Logs the given entry in this log.

public void Log(LogEntry entry)

Parameters

entry LogEntry

The entry to log.