NullLogger<T> NullLogger(Of T) Class

Definition

public class NullLogger<T> : ILogger<T>
Public Class NullLogger(Of T)
    Inherits ILogger(Of T)
Type Parameters
T
Inheritance
NullLogger<T>NullLogger(Of T)

Fields

Instance Instance

public static readonly NullLogger<T> Instance
Public Shared ReadOnly Instance As NullLogger(Of T)

Methods

BeginScope(TState) BeginScope(Of TState)(TState)

public IDisposable BeginScope<TState>(TState state)
Public Function BeginScope(Of TState)(state As TState) As IDisposable
Type Parameters
TState
Parameters
state
TState TState
Returns
IDisposable IDisposable

IsEnabled(LogLevel) IsEnabled(LogLevel)

public bool IsEnabled(LogLevel logLevel)
Public Function IsEnabled(logLevel As LogLevel) As Boolean
Parameters
logLevel
LogLevel LogLevel
Returns

Log(LogLevel, EventId, TState, Exception, Func) Log(Of TState)(LogLevel, EventId, TState, Exception, Func(Of TState, Exception, String))

public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Public Sub Log(Of TState)(logLevel As LogLevel, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String))
Type Parameters
TState
Parameters
logLevel
LogLevel LogLevel
eventId
EventId EventId
state
TState TState
exception
Exception Exception
formatter
Func<TState, Exception, String> Func(Of TState, Exception, String)