Class
ConsoleLogTail
ConsoleMonster.Live.Tails
Runs a reusable log tail from a file, event reader or other caller-owned polling source.
Inheritance
- object
- ConsoleLogTail
Methods
public static void Run(Func<IReadOnlyList<TailedLogEntry>> read, LogTailOptions? options = null, CancellationToken cancellationToken = default) #Follows a polling source until Count, cancellation, input closure, q, Escape or Ctrl+C.
Parameters
- read System.Func<System.Collections.Generic.IReadOnlyList<ConsoleMonster.Live.Tails.TailedLogEntry>>
- Returns currently available completed entries. Called synchronously; it must return promptly.
- options ConsoleMonster.Live.Tails.LogTailOptions? = null
- Configuration, or null for full-screen defaults with automatic plain fallback.
- cancellationToken System.Threading.CancellationToken = default
- Cooperative cancellation. Cancellation ends normally.