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)
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
Added validation to verify format string named parameter count
Added validation to verify format string named parameter count
Added validation to verify format string named parameter count