Logs a message with Warn level.
public static void Warn(this Logger logger, LogEventId eventId, object? attachment, string msg)
The logger instance.
The event identifier associated with the message.
An optional attachment associated with the message.
The log message.