Skip to content
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
@BrennanConroy

Description

@BrennanConroy

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

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions