AspNetRequestLayoutRenderer Class |
Namespace: NLog.Web.LayoutRenderers
The AspNetRequestLayoutRenderer type exposes the following members.
| Name | Description | |
|---|---|---|
| AspNetRequestLayoutRenderer | Initializes a new instance of the AspNetRequestLayoutRenderer class |
| Name | Description | |
|---|---|---|
| Cookie |
Gets or sets the cookie to be rendered.
| |
| Form |
Gets or sets the form variable to be rendered.
| |
| Header |
Gets or sets the Headers item to be rendered.
| |
| HttpContextAccessor |
Provides access to the current request HttpContext.
(Inherited from AspNetLayoutRendererBase.) | |
| Item |
Gets or sets the HttpContext Item to be rendered.
| |
| LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.) | |
| QueryString |
Gets or sets the QueryString variable to be rendered.
| |
| ServerVariable |
Gets or sets the ServerVariables item to be rendered.
| |
| ValueFormatter |
Value formatter
(Inherited from LayoutRenderer.) |
| Name | Description | |
|---|---|---|
| Append |
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides AspNetLayoutRendererBaseAppend(StringBuilder, LogEventInfo).) | |
| CloseLayoutRenderer |
Closes the layout renderer.
(Inherited from AspNetLayoutRendererBase.) | |
| DoAppend | Obsolete.
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Inherited from AspNetLayoutRendererBase.) | |
| GetCulture |
Get the CultureInfo for rendering the messages to a String (Inherited from LayoutRenderer.) | |
| GetFormatProvider |
Get the IFormatProvider for rendering the messages to a String (Inherited from LayoutRenderer.) | |
| InitializeLayoutRenderer |
Initializes the layout renderer.
(Inherited from LayoutRenderer.) | |
| Render |
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.) | |
| ResolveServiceT |
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.) | |
| ToString | Returns a string that represents the current object. (Inherited from LayoutRenderer.) |
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}