Files
Terminal.Gui/Tests/TerminalGuiFluentTesting/TextWriterLogger.cs
Tig 0baa881dc5 Fixes #4046 - Moves examples into ./Examples and fixes ./Tests (#4047)
* touching publish.yml

* Moved Examples into ./Examples

* Moved Benchmarks into ./Tests

* Moved Benchmarks into ./Tests

* Moved UICatalog into ./Examples

* Moved UICatalog into ./Examples 2

* Moved tests into ./Tests

* Updated nuget
2025-04-25 09:49:33 -06:00

22 lines
529 B
C#

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