| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
ASP.NET Request variable.
Platforms Supported: All
This layout renderer is broken down to separate layout renders who are more ASP.NET Core compatible / future proof:
And there are many more NLog LayoutRenderers to choose from
${aspnet-request:cookie=String:serverVariable=String:queryString=String
:item=String:form=String:header=String}
Not supported on ASP.NET Core until NLog.Web.AspNetCore v5.1
Use this layout renderer to insert the value of the specified parameter of the ASP.NET Request object. This renderer requires the NLog.Web package.
Full URL without domain, eg default.aspx?id=512
${aspnet-request:serverVariable=HTTP_URL}${aspnet-request:queryString}
URL doing the request. Including schema (e.g https://) and querystring
${aspnet-request:header=Referer}
Content-Type like application/json; charset=UTF-8
${aspnet-request:header=Content-Type}
Method like PUT, POST, GET etc
${aspnet-request:serverVariable=REQUEST_METHOD}
user agent, like Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
${aspnet-request:serverVariable=HTTP_USER_AGENT}
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
| Back | FazBrowse Home | New Git URL |