Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safe range for EventId.Id in ASP.NET Core logging mechanism

Tags:

asp.net-core

I am trying to log some events in my ASP.NET Core application and I don't want to collide with another library. Is there a safe range for custom EventIds EventId.Id?

All ASP.NET Core logs that I found, has EventId.Id lower then 1000. But EF has arround 100,000.

I need this, so I can easy filter my events from other events.

like image 515
Makla Avatar asked Oct 30 '22 00:10

Makla


1 Answers

EventId is application specific. There's no "safe range". It's just whatever you want your event ids to be.

like image 174
Chris Pratt Avatar answered Jan 02 '23 19:01

Chris Pratt