AspNetRequest layout renderer

Julian Verdurmen edited this page Nov 22, 2016 · 10 revisions
Clone this wiki locally

ASP.NET Request variable.

Supported in .NET and Mono

Configuration Syntax



Rendering Options

  • cookie - Cookie to be rendered.
  • header - Request header. Introduced in NLog.Web 4.2
  • serverVariable - ServerVariables item to be rendered. See for possible options: msdn
  • queryString - QueryString variable to be rendered.
  • item - Item name. The QueryString, Form, Cookies, or ServerVariables collection variables having the specified name are rendered.
  • form - Form variable to be rendered.


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"