using Microsoft.Extensions.Logging; using Xunit.Abstractions; namespace Canon.Tests.Utils; public class TestLogger(ITestOutputHelper testOutputHelper) : ILogger, IDisposable { public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter) { testOutputHelper.WriteLine("{0}: {1}", logLevel, formatter(state, exception)); } public bool IsEnabled(LogLevel logLevel) => false; public void Dispose() { } public IDisposable BeginScope(TState state) where TState : notnull { return this; } }