I have an ASP.NET Core 8.0 MVC app running on IIS 10 and which uses cookie authentication. I noticed that IIS doesn’t include the user name in the log after the user is authenticated. Logging the user name in the IIS log is enabled.
This application has been converted from an ASP.NET MVC & webforms app. Previously, the users were authenticated via forms authentication, and IIS logged the user name in each request (after the user was authenticated).
Any idea on how to make IIS log the user name in the context of an ASP.NET Core app that uses cookie authentication?
TIA