InterceptingLogger<T> InterceptingLogger(Of T) Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public class InterceptingLogger<T> : ILogger<T>Public Class InterceptingLogger(Of T)
    Inherits ILogger(Of T)

Type Parameters

T

Inheritance Hierarchy

  • System.Object
    System.Object
  • InterceptingLogger<T>
    InterceptingLogger(Of T)

Constructors summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Methods summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Constructors

  • InterceptingLogger(IDbContextServices, IServiceProvider, IDbContextOptions)
    InterceptingLogger(IDbContextServices, IServiceProvider, IDbContextOptions)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public InterceptingLogger(IDbContextServices contextServices, IServiceProvider serviceProvider, IDbContextOptions contextOptions)Public Sub New(contextServices As IDbContextServices, serviceProvider As IServiceProvider, contextOptions As IDbContextOptions)

    Parameters

Methods

  • BeginScope<TState>(TState)
    BeginScope(Of TState)(TState)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual IDisposable BeginScope<TState>(TState state)Public Overridable Function BeginScope(Of TState)(state As TState) As IDisposable

    Parameters

    • state
      TState
      TState

    Returns

    • System.IDisposable
      System.IDisposable
  • IsEnabled(LogLevel)
    IsEnabled(LogLevel)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual bool IsEnabled(LogLevel logLevel)Public Overridable Function IsEnabled(logLevel As LogLevel) As Boolean

    Parameters

    • logLevel
      System.LogLevel
      System.LogLevel

    Returns

    • System.Boolean
      System.Boolean
  • Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
    Log(Of TState)(LogLevel, EventId, TState, Exception, Func(Of TState, Exception, String))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

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

    Parameters

    • logLevel
      System.LogLevel
      System.LogLevel
    • eventId
      EventId
      EventId
    • state
      TState
      TState
    • exception
      System.Exception
      System.Exception
    • formatter
      System.Func<T1, T2, TResult><TState, System.Exception, System.String>
      System.Func<T1, T2, TResult>(Of TState, System.Exception, System.String)

Details

Assembly

Microsoft.EntityFrameworkCore.dll