Class NullLogger<T>
Inheritance
NullLogger<T>
Assembly: Microsoft.Extensions.Logging.Abstractions.dll
Syntax
public class NullLogger<T> : ILogger<T>, ILogger
Type Parameters
Constructors
NullLogger()
Declaration
Fields
Instance
Declaration
public static readonly NullLogger<T> Instance
Field Value
Methods
BeginScope<TState>(TState)
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Returns
Type Parameters
IsEnabled(LogLevel)
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Returns
Log<TState>(LogLevel, EventId, TState, Exception?, Func<TState, Exception?, string>)
Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Parameters
Type Parameters
Implements
Extension Methods