Repository navigation
Add event names for logs (#6818) - #4495
Conversation
dougbu
left a comment
There was a problem hiding this comment.
How visible will these new names be? If they'll appear in the output, we might want to be more consistent about Starting… -> Done… versus Before… -> After… or other conventions we've used. But, I don't see a need to block this PR for decisions on the right convention.
| new EventId(28, "NoNonIndexBasedFormatFoundForCollection"), | ||
| "Could not bind to collection using a format like {ModelName}=value1&{ModelName}=value2"); | ||
|
|
||
|
|
There was a problem hiding this comment.
Don't need this extra blank line
| _logFilterExecutionPlan = LoggerMessage.Define<string, string[]>( | ||
| LogLevel.Debug, | ||
| 1, | ||
| new EventId(1, "LogFilterExecutionPlan"), |
There was a problem hiding this comment.
This name doesn't look like any of the others. Suggest FilterExecutionPlan or OrderedFilterExecutionPlan.
| 5, | ||
| "Located compiled view for view at path '{Path}'."); | ||
|
|
||
| _viewCompilerLocatedCompiledViewForPath = LoggerMessage.Define<string>( |
From aspnet/Mvc#6818 (comment), the names appear in the log output and used for filtering. I guess it's important that it's unique, but the issue doesn't say much about the nomenclature. |
fde620c to
63355cb
Compare
|
@Kahbazi thanks for the PR |
|
FYI, we try to avoid using |
|
@pranavkm you're welcome. Should I remove the |
Go for it! |
Fixes aspnet/Mvc#6818