Class LogExtensions
- Namespace
- Pixie.Transforms
- Assembly
- Pixie.dll
Convenience helpers for decorating logs with common transforms.
public static class LogExtensions
- Inheritance
-
LogExtensions
- Inherited Members
Methods
WithTransform(ILog, Func<LogEntry, LogEntry>)
Wraps a log so that every entry is first transformed before being forwarded to the underlying log.
public static ILog WithTransform(this ILog log, Func<LogEntry, LogEntry> transform)
Parameters
Returns
- ILog
A log that applies the requested transform.
WithWordWrap(ILog)
Wraps a log so that every entry's contents are passed through WordWrap(Block) before rendering.
public static ILog WithWordWrap(this ILog log)
Parameters
logILogThe log to wrap.
Returns
- ILog
A log that word-wraps each entry.