Taal

FakeLogRecord Constructor

Definitie

Initialiseert een nieuw exemplaar van de FakeLogRecord klasse.

public:
 FakeLogRecord(Microsoft::Extensions::Logging::LogLevel level, Microsoft::Extensions::Logging::EventId id, System::Object ^ state, Exception ^ exception, System::String ^ message, System::Collections::Generic::IReadOnlyList<System::Object ^> ^ scopes, System::String ^ category, bool enabled, DateTimeOffset timestamp);
public FakeLogRecord(Microsoft.Extensions.Logging.LogLevel level, Microsoft.Extensions.Logging.EventId id, object? state, Exception? exception, string message, System.Collections.Generic.IReadOnlyList<object?> scopes, string? category, bool enabled, DateTimeOffset timestamp);
new Microsoft.Extensions.Logging.Testing.FakeLogRecord : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * obj * Exception * string * System.Collections.Generic.IReadOnlyList<obj> * string * bool * DateTimeOffset -> Microsoft.Extensions.Logging.Testing.FakeLogRecord
Public Sub New (level As LogLevel, id As EventId, state As Object, exception As Exception, message As String, scopes As IReadOnlyList(Of Object), category As String, enabled As Boolean, timestamp As DateTimeOffset)

Parameters

level
LogLevel

Het niveau dat wordt gebruikt bij het produceren van de logboekrecord.

id
EventId

De id die de specifieke logboekinstructie vertegenwoordigt.

state
Object

De ondoorzichtige status die door de aanroeper wordt opgegeven bij het maken van de logboekrecord.

exception
Exception

Een optionele uitzondering die is gekoppeld aan de logboekrecord.

message
String

De opgemaakte berichttekst voor de record.

scopes
IReadOnlyList<Object>

Lijst met actieve bereiken die actief zijn voor deze logboekrecord.

category
String

De optionele categorie voor deze record, die overeenkomt met de T in ILogger<TCategoryName>.

enabled
Boolean

Of het logboekniveau al dan niet is ingeschakeld toen de Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) methode werd aangeroepen.

timestamp
DateTimeOffset

Het tijdstip waarop de logboekrecord is gemaakt.

Van toepassing op