using System;
using Microsoft.Extensions.Logging;
namespace Falcon.SugarApi.Test
{
///
/// 测试用Logger实例
///
public class TestLog : ILogger,ILogger
{
public IDisposable BeginScope(TState state) {
throw new NotImplementedException();
}
public bool IsEnabled(LogLevel logLevel) => true;
public void Log(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func formatter) {
Console.WriteLine(state?.ToString());
}
}
}