Logs a message with Warn level.
public static void Warn(this Logger logger, LogEventId eventId, object? attachment, LogProperties properties, [InterpolatedStringHandlerArgument(new string[] { "eventId", "attachment", "logger", "properties" })] ref Logger.WarnInterpolatedLogMessage 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.