ILogger
Represents a type used to perform logging.
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Extensions.Logging
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface ILogger
{
[System.Runtime.CompilerServices.NullableContext(2)]
void Log<TState>(LogLevel logLevel, EventId eventId, [System.Runtime.CompilerServices.Nullable(1)] TState state, Exception exception, [System.Runtime.CompilerServices.Nullable(new byte[] {
1,
1,
2,
1
})] Func<TState, Exception, string> formatter);
bool IsEnabled(LogLevel logLevel);
[return: System.Runtime.CompilerServices.Nullable(2)]
IDisposable BeginScope<TState>(TState state);
}
}