Test​Sql​Logger​Factory Test​Sql​Logger​Factory Class

Definition

public class TestSqlLoggerFactory : ILoggerFactoryPublic Class TestSqlLoggerFactory
    Inherits ILoggerFactory
Inheritance
System.ObjectSystem.Object
TestSqlLoggerFactoryTestSqlLoggerFactory

Properties

CommandLogData CommandLogData

public static IReadOnlyList<DbCommandLogData> CommandLogData { get; }Public Shared ReadOnly Property CommandLogData As IReadOnlyList(Of DbCommandLogData)
Value
System.Collections.Generic.IReadOnlyList<DbCommandLogData> System.Collections.Generic.IReadOnlyList(Of DbCommandLogData)

Log Log

public static string Log { get; }Public Shared ReadOnly Property Log As String
Value
System.String System.String

Sql Sql

public static string Sql { get; }Public Shared ReadOnly Property Sql As String
Value
System.String System.String

SqlStatements SqlStatements

public static IReadOnlyList<string> SqlStatements { get; }Public Shared ReadOnly Property SqlStatements As IReadOnlyList(Of String)
Value
System.Collections.Generic.IReadOnlyList<System.String> System.Collections.Generic.IReadOnlyList(Of System.String)

Methods

AddProvider(ILoggerProvider) AddProvider(ILoggerProvider)

public void AddProvider(ILoggerProvider provider)Public Sub AddProvider(provider As ILoggerProvider)
Parameters
provider
ILoggerProvider ILoggerProvider

CancelQuery() CancelQuery()

public CancellationToken CancelQuery()Public Function CancelQuery As CancellationToken
Returns
System.Threading.CancellationToken System.Threading.CancellationToken

CaptureOutput(ITestOutputHelper) CaptureOutput(ITestOutputHelper)

public static void CaptureOutput(ITestOutputHelper testOutputHelper)Public Shared Sub CaptureOutput(testOutputHelper As ITestOutputHelper)
Parameters
testOutputHelper
ITestOutputHelper ITestOutputHelper

CreateLogger(String) CreateLogger(String)

public ILogger CreateLogger(string name)Public Function CreateLogger(name As String) As ILogger
Parameters
name
System.String System.String
Returns
ILogger ILogger

Dispose() Dispose()

public void Dispose()Public Sub Dispose

Reset() Reset()

public static void Reset()Public Shared Sub Reset