Class CapturedLogDiagnosticsEntry
Describes a captured log entry stored on a Mocker instance.
Implements
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Core.dll
Syntax
public sealed record CapturedLogDiagnosticsEntry : IEquatable<CapturedLogDiagnosticsEntry>
Constructors
CapturedLogDiagnosticsEntry(LogLevel, int, string, string?, string?)
Describes a captured log entry stored on a Mocker instance.
Declaration
public CapturedLogDiagnosticsEntry(LogLevel LogLevel, int EventId, string Message, string? ExceptionType, string? ExceptionMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | LogLevel | The captured log level. |
| int | EventId | The captured event id. |
| string | Message | The captured log message. |
| string | ExceptionType | The exception type when a matching exception was captured. |
| string | ExceptionMessage | The exception message when a matching exception was captured. |
Properties
EventId
The captured event id.
Declaration
public int EventId { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
ExceptionMessage
The exception message when a matching exception was captured.
Declaration
public string? ExceptionMessage { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ExceptionType
The exception type when a matching exception was captured.
Declaration
public string? ExceptionType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
LogLevel
The captured log level.
Declaration
public LogLevel LogLevel { get; init; }
Property Value
| Type | Description |
|---|---|
| LogLevel |
Message
The captured log message.
Declaration
public string Message { get; init; }
Property Value
| Type | Description |
|---|---|
| string |