AzureAD / azure-activedirectory-identitymodel-extensions-for-dotnet

IdentityModel extensions for .Net
MIT License
1.06k stars 401 forks source link

Create documentation that shows how to collect log messages #1452

Open keegan-caruso opened 4 years ago

keegan-caruso commented 4 years ago

It would be good to have documentation that shows how to collect logs from the IdentityModelEventSource.

This could either be in the wiki or right in the readme

mafurman commented 3 years ago

We should expand on this Wiki page: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/wiki/How-to-log-from-IdentityModelEventSource.Logger

JoeMarkov commented 3 years ago

I was very surprised that the logging was not automatically included in the ASP.NET Core ILogger and I have spend several hours trying various logging levels to get logs from the IdentityModel namesspace into the logs.

So I would appreciate if it was more clear how to actually properly get the logs out of IdentityModel into the classing ILogger or Serilog.

Mostly for educational purposes, but i think its bad that the art of extracting this information is so well hidden.