Κοινή χρήση μέσω


FakeLogger<T> Constructors

Definition

Overloads

FakeLogger<T>(FakeLogCollector)

Initializes a new instance of the FakeLogger<T> class.

FakeLogger<T>(Action<String>)

Initializes a new instance of the FakeLogger<T> class that copies all log records to the given output sink.

FakeLogger<T>(FakeLogCollector)

Source:
FakeLoggerT.cs

Initializes a new instance of the FakeLogger<T> class.

public FakeLogger (Microsoft.Extensions.Logging.Testing.FakeLogCollector? collector = default);
new Microsoft.Extensions.Logging.Testing.FakeLogger<'T> : Microsoft.Extensions.Logging.Testing.FakeLogCollector -> Microsoft.Extensions.Logging.Testing.FakeLogger<'T>
Public Sub New (Optional collector As FakeLogCollector = Nothing)

Parameters

collector
FakeLogCollector

Where to push all log state.

Applies to

FakeLogger<T>(Action<String>)

Source:
FakeLoggerT.cs

Initializes a new instance of the FakeLogger<T> class that copies all log records to the given output sink.

public:
 FakeLogger(Action<System::String ^> ^ outputSink);
public FakeLogger (Action<string> outputSink);
new Microsoft.Extensions.Logging.Testing.FakeLogger<'T> : Action<string> -> Microsoft.Extensions.Logging.Testing.FakeLogger<'T>
Public Sub New (outputSink As Action(Of String))

Parameters

outputSink
Action<String>

Where to emit individual log records.

Applies to