InMemoryCommandLogger InMemoryCommandLogger Class

Syntax

Declaration

public class InMemoryCommandLogger : CommandLogger, ILoggerPublic Class InMemoryCommandLogger
    Inherits CommandLogger
    Implements ILogger

Inheritance Hierarchy

Inherited Members

BeginScope(Object),
BeginScope(Object),
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>),
Log(Of TState)(LogLevel, EventId, TState, Exception, Func(Of TState, Exception, String)),
BeginScope<TState>(TState),
BeginScope(Of TState)(TState),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Fields summary

Methods summary

Constructors

  • InMemoryCommandLogger(String, ITestOutputHelper)
    InMemoryCommandLogger(String, ITestOutputHelper)
    public InMemoryCommandLogger(string name, ITestOutputHelper output)Public Sub New(name As String, output As ITestOutputHelper)

    Parameters

    • name
      System.String
      System.String
    • output
      Xunit.Abstractions.ITestOutputHelper
      Xunit.Abstractions.ITestOutputHelper

Fields

  • Messages
    Messages
    public LoggerMessages MessagesPublic Messages As LoggerMessages

Methods

  • IsEnabled(LogLevel)
    IsEnabled(LogLevel)
    public override bool IsEnabled(LogLevel logLevel)Public Overrides Function IsEnabled(logLevel As LogLevel) As Boolean

    Parameters

    • logLevel
      Microsoft.Extensions.Logging.LogLevel
      Microsoft.Extensions.Logging.LogLevel

    Returns

    • System.Boolean
      System.Boolean
  • WriteDebug(String)
    WriteDebug(String)
    protected override void WriteDebug(string message)Protected Overrides Sub WriteDebug(message As String)

    Parameters

    • message
      System.String
      System.String
  • WriteError(String)
    WriteError(String)
    protected override void WriteError(string message)Protected Overrides Sub WriteError(message As String)

    Parameters

    • message
      System.String
      System.String
  • WriteInformation(String)
    WriteInformation(String)
    protected override void WriteInformation(string message)Protected Overrides Sub WriteInformation(message As String)

    Parameters

    • message
      System.String
      System.String
  • WriteTrace(String)
    WriteTrace(String)
    protected override void WriteTrace(string message)Protected Overrides Sub WriteTrace(message As String)

    Parameters

    • message
      System.String
      System.String
  • WriteWarning(String)
    WriteWarning(String)
    protected override void WriteWarning(string message)Protected Overrides Sub WriteWarning(message As String)

    Parameters

    • message
      System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Design.Specification.Tests.dll