<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="11.0.0-preview.4.26230.115" />

Microsoft.Extensions.Logging.Abstractions.NullLogger<T>

public class NullLogger<T> : ILogger<T>, ILogger
Minimalistic logger that does nothing.
namespace Microsoft.Extensions.Logging.Abstractions { public class NullLogger<[System.Runtime.CompilerServices.Nullable(2)] T> : ILogger<T>, ILogger { public static readonly NullLogger<T> Instance; public IDisposable BeginScope<TState>(TState state); public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter); public bool IsEnabled(LogLevel logLevel); public NullLogger(); } }