This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
[Proposal] LogValues should throw if too many/too few arguments in format string #413
Closed
Description
Its easy to make a mistake when using Define such as LoggerMessage.Define<string>(x:, y:, formatString: "my string")
. This will then throw later if the developer enumerates the values, we should try to throw upon construction.
See issues like aspnet/Mvc#4575 (comment)