-
Notifications
You must be signed in to change notification settings - Fork 1.4k
AspNetRequest Host Layout Renderer
Rolf Kristensen edited this page Jan 23, 2022
·
8 revisions
ASP.NET Request DNS name of the remote client
Platforms Supported: All (ASP.NET Core + ASP.NET)
Introduced in NLog.Web 4.3
${aspnet-request-host}
- ASP.NET Core returns the
Host
-Header - ASP.NET returns the
REMOTE_ADDR
-ServerVariable
See also AspNet Request IP Layout Renderer
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
- Articles about NLog
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json