using System; using Microsoft.Extensions.Logging; namespace MTSC.UnitTests { public sealed class ConsoleLogger : ILogger { public IDisposable BeginScope(TState state) { throw new NotImplementedException(); } public bool IsEnabled(LogLevel logLevel) { return true; } public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func formatter) { var message = formatter(state, exception); Console.WriteLine(message); } } }