ListLogger ListLogger Class

Syntax

Declaration

public class ListLogger : ILoggerPublic Class ListLogger
    Inherits ILogger

Inheritance Hierarchy

  • System.Object
    System.Object
  • ListLogger
    ListLogger

Constructors summary

Properties summary

Methods summary

Constructors

  • ListLogger(List<Tuple<LogLevel, String>>)
    ListLogger(List(Of Tuple(Of LogLevel, String)))
    public ListLogger(List<Tuple<LogLevel, string>> logMessages)Public Sub New(logMessages As List(Of Tuple(Of LogLevel, String)))

    Parameters

    • logMessages
      System.Collections.Generic.List<T><System.Tuple`2<System.LogLevel, System.String>>
      System.Collections.Generic.List<T>(Of System.Tuple`2(Of System.LogLevel, System.String))

Properties

  • LogMessages
    LogMessages
    public List<Tuple<LogLevel, string>> LogMessages { get; }Public ReadOnly Property LogMessages As List(Of Tuple(Of LogLevel, String))

    Property Value

    • System.Collections.Generic.List<T><System.Tuple`2<System.LogLevel, System.String>>
      System.Collections.Generic.List<T>(Of System.Tuple`2(Of System.LogLevel, System.String))

Methods

  • BeginScope(Object)
    BeginScope(Object)
    public IDisposable BeginScope(object state)Public Function BeginScope(state As Object) As IDisposable

    Parameters

    • state
      System.Object
      System.Object

    Returns

    • System.IDisposable
      System.IDisposable
  • BeginScope<TState>(TState)
    BeginScope(Of TState)(TState)
    public IDisposable BeginScope<TState>(TState state)Public Function BeginScope(Of TState)(state As TState) As IDisposable

    Parameters

    • state
      TState
      TState

    Returns

    • System.IDisposable
      System.IDisposable
  • IsEnabled(LogLevel)
    IsEnabled(LogLevel)
    public bool IsEnabled(LogLevel logLevel)Public 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))
    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))

    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.Tests.dll