Net Core NLog.Web “aspnet-user-identity” is empty?
问题 I was using "NLog.Extensions.Logging" for logging and need to log user identity and found that it is possible with "NLog.Web.AspNetCore". "nlog.config" file is configured to log the "aspnet-user-identity". However, when I look at logs, user identity part is always empty string, the other columns are look pretty good. Am I missing something? A part of my configuration file is here: <extensions> <assembly="NLog.Web.AspNetCore" /> </extensions> <parameter name="@identity" layout="${aspnet-user