| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Render Windows identity information (username) from the current thread-context.
Platforms Supported: Limited - Windows only and requires nuget-package NLog.WindowsIdentity since NLog 5.0
${windows-identity:userName=Boolean:domain=Boolean}
${environment-user} is an alternative that depends on Environment.UserName, which is compatible with both Windows/Linux (and less overhead).
${identity} is an alternative that depends on Thread.CurrentPrincipal.
${aspnet-user-identity} is an alternative that only works on ASP.NET Applications with identity enabled.
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
| Back | FazBrowse Home | New Git URL |