Asp.net core does not use the old framework pipeline, so there is no access to user context. Instead asp.net core writes its own logs and iis saves them. You probably want to use the w3c logger format instead of the default.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/w3c-logger/?view=aspnetcore-9.0