ASP.NET Core EventLog provider
logging.AddEventSourceLogger()
is for Event Tracing.
For the Event Log, you want to use:
logging.AddEventLog()
Install Microsoft.Extensions.Logging.EventLog from Nuget.
Include the Microsoft.Extensions.Logging.EventLog on the program.cs file
Then logging.AddEventLog()
will be possible and consequently you will be able to achieve your goal