Table of Contents

Class XunitTestLoggerEntry

Namespace
Codebelt.Extensions.Xunit.Hosting
Assembly
Codebelt.Extensions.Xunit.Hosting.dll

Represents a captured log-entry for testing purposes. This record encapsulates the LogLevel, EventId and message.

public class XunitTestLoggerEntry : IEquatable<XunitTestLoggerEntry>
Inheritance
XunitTestLoggerEntry
Implements

Constructors

XunitTestLoggerEntry(LogLevel, EventId, String)

Initializes a new instance of the XunitTestLoggerEntry class.

public XunitTestLoggerEntry(LogLevel severity, EventId id, string message)

Parameters

severity LogLevel

The LogLevel for this entry.

id EventId

The EventId of this entry.

message String

The message of this entry.

Properties

Id

Gets the event identifier.

public EventId Id { get; }

Property Value

EventId

The event identifier.

Message

Gets the value of the message.

public string Message { get; }

Property Value

String

The value of the message.

Severity

Gets the log level.

public LogLevel Severity { get; }

Property Value

LogLevel

The log level.

Methods

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

String

A String that represents this instance.