Logs a message with Error level.
public static void Error(this Logger logger, LogEventId eventId, object? attachment, LogProperties properties, [InterpolatedStringHandlerArgument(new string[] { "eventId", "attachment", "logger", "properties" })] ref Logger.ErrorInterpolatedLogMessage msg)
The logger instance.
The event identifier associated with the message.
An optional attachment associated with the message.
Structured properties associated with the message.
The interpolated log message handler.