Click or drag to resize

AspNetRequestLayoutRenderer Class

ASP.NET Request Context variable.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.Web.LayoutRenderersAspNetLayoutRendererBase
      NLog.Web.LayoutRenderersAspNetRequestLayoutRenderer

Namespace:  NLog.Web.LayoutRenderers
Assemblies:   NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
  NLog.Web (in NLog.Web.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
Syntax
public class AspNetRequestLayoutRenderer : AspNetLayoutRendererBase

The AspNetRequestLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodAspNetRequestLayoutRenderer
Initializes a new instance of the AspNetRequestLayoutRenderer class
Top
Properties
  NameDescription
Public propertyCookie
Gets or sets the cookie to be rendered.
Public propertyForm
Gets or sets the form variable to be rendered.
Public propertyHeader
Gets or sets the Headers item to be rendered.
Public propertyHttpContextAccessor
Provides access to the current request HttpContext.
(Inherited from AspNetLayoutRendererBase.)
Public propertyItem
Gets or sets the HttpContext Item to be rendered.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyQueryString
Gets or sets the QueryString variable to be rendered.
Public propertyServerVariable
Gets or sets the ServerVariables item to be rendered.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Top
Methods
  NameDescription
Protected methodAppend
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides AspNetLayoutRendererBaseAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Inherited from AspNetLayoutRendererBase.)
Protected methodDoAppend Obsolete.
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Inherited from AspNetLayoutRendererBase.)
Protected methodGetCulture
Get the CultureInfo for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodGetFormatProvider
Get the IFormatProvider for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodInitializeLayoutRenderer
Initializes the layout renderer.
(Inherited from LayoutRenderer.)
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Protected methodResolveServiceT
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
Remarks
1${aspnet-request:item=v}
2${aspnet-request:querystring=v}
3${aspnet-request:form=v}
4${aspnet-request:cookie=v}
5${aspnet-request:header=h}
6${aspnet-request:serverVariable=v}
See Also