<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.3" />

EventId

public struct EventId : IEquatable<EventId>
Identifies a logging event. The primary identifier is the "Id" property, with the "Name" property providing a short description of this type of event.
public int Id { get; }

Gets the numeric identifier for this event.

public string Name { get; }

Gets the name of this event.

public EventId(int id, string name = null)

Initializes an instance of the EventId struct.

public static bool op_Equality(EventId left, EventId right)

Checks if two specified EventId instances have the same value. They are equal if they have the same Id.

public static EventId op_Implicit(int i)

Implicitly creates an EventId from the given Int32.

public static bool op_Inequality(EventId left, EventId right)

Checks if two specified EventId instances have different values.

public bool Equals(EventId other)

Indicates whether the current object is equal to another object of the same type. Two events are equal if they have the same id.