-
Notifications
You must be signed in to change notification settings - Fork 2.1k
EventID's should be unique per-category #6062
Comments
Our eventIds are unique per-logger. Where is this new requirement coming from? |
Yeah this is news to me. The uniqueness is (category + eventid), not just (eventid). |
@BrennanConroy did I misunderstand the requirements here? And @Eilon what "category" are you talking about? |
The category is usually the type name we pass into |
If we have a bug we should fix it. But this statement has never been a practice we have followed:
|
@ryanbrandenburg that does appear to be a specific bug in that specific case. |
Updated to reflect category vs package. |
Ok let's fix this one offending one. I can't think of a good way to easily detect this because there's no way to tell from the various LoggerExtension methods where the log will be used, and thus what the category is. |
According to @BrennanConroy eventId's of
LoggerMessage.Define
should be unique per category (usually theT
inILogger<T>
). There's some spots where that's not true and we should fix it. Example of non-uniqueness here.The text was updated successfully, but these errors were encountered: