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
-
ObjectXunitTestLoggerEntry
- Implements
-
IEquatable<XunitTestLoggerEntry>
Constructors
XunitTestLoggerEntry(LogLevel, EventId, String)
Initializes a new instance of the XunitTestLoggerEntry class.
public XunitTestLoggerEntry(LogLevel severity, EventId id, string message)
Parameters
severity
LogLevelThe Microsoft.Extensions.Logging.LogLevel for this entry.
id
EventIdThe Microsoft.Extensions.Logging.EventId of this entry.
message
StringThe 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.