FakeLogger.LatestRecord Property

Definition

Gets the latest record logged to this logger.

C#
public Microsoft.Extensions.Logging.Testing.FakeLogRecord LatestRecord { get; }

Property Value

Exceptions

No records have been captured.

Remarks

This is a convenience property that merely returns the latest record from the underlying collector.

Applies to

Produk Versi
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)