Relative Content

Tag Archive for asp.net-corenlog

NLog layout renderer for aspnet-user-identity not showing in log

I am trying to get the user identity from ASP.NET to log using NLog but it is not working. Nothing is logged for {aspnet-user-identity} or {aspnet-request-ip}. I have the layout renders in my nlog.config file, but the resulting log messages do not show values for the aspnet layout renderers. It’s not logging this information in the file or the database.