FakeLogRecord Oluşturucu
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
FakeLogRecord sınıfının yeni bir örneğini başlatır.
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)
Parametreler
- level
- LogLevel
Günlük kaydı oluşturulurken kullanılan düzey.
- id
- EventId
Belirli günlük deyimini temsil eden kimlik.
- state
- Object
Günlük kaydı oluşturulurken çağıran tarafından sağlanan opak durum.
- exception
- Exception
Günlük kaydıyla ilişkili isteğe bağlı bir özel durum.
- message
- String
Kaydın biçimlendirilmiş ileti metni.
- scopes
- IReadOnlyList<Object>
Bu günlük kaydı için etkin olan etkin kapsamların listesi.
- category
- String
Bu kaydın içindeki T'ye ILogger<TCategoryName>karşılık gelen isteğe bağlı kategorisi.
- enabled
- Boolean
Yöntem çağrıldığında günlük düzeyinin Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) etkinleştirilip etkinleştirilmediği.
- timestamp
- DateTimeOffset
Günlük kaydının oluşturulduğu saat.