using Microsoft.Extensions.Logging; namespace TerminalGuiFluentTesting; internal class TextWriterLogger (TextWriter writer) : ILogger { public IDisposable? BeginScope (TState state) { return null; } public bool IsEnabled (LogLevel logLevel) { return true; } public void Log ( LogLevel logLevel, EventId eventId, TState state, Exception? ex, Func formatter ) { writer.WriteLine (formatter (state, ex)); } }