Class NullLogger
Implements a do-nothing ILogger.
Assembly: Neon.Common.dll
Syntax
public class NullLogger : ILogger
Properties
Instance
Declaration
public static ILogger Instance { get; }
Property 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
Type |
Name |
Description |
LogLevel |
logLevel |
|
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