Table of Contents

Class XunitTestLoggerEntry

Namespace
Cuemon.Extensions.Xunit.Hosting
Assembly
Cuemon.Extensions.Xunit.Hosting.dll

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

public class XunitTestLoggerEntry : IEquatable<XunitTestLoggerEntry>
Inheritance
Object
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 Microsoft.Extensions.Logging.LogLevel for this entry.

id EventId

The Microsoft.Extensions.Logging.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 System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.