Click or drag to resize

AspNetLayoutMultiValueRendererBase Class

Layout renderers for ASP.NET rendering multiple key/value pairs.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.Web.LayoutRenderersAspNetLayoutRendererBase
      NLog.Web.LayoutRenderersAspNetLayoutMultiValueRendererBase
        More...

Namespace:  NLog.Web.LayoutRenderers
Assemblies:   NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
  NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
public abstract class AspNetLayoutMultiValueRendererBase : AspNetLayoutRendererBase

The AspNetLayoutMultiValueRendererBase type exposes the following members.

Constructors
  NameDescription
Protected methodAspNetLayoutMultiValueRendererBase
Initializes a new instance of the AspNetLayoutMultiValueRendererBase class
Top
Properties
  NameDescription
Public propertyHttpContextAccessor
Provides access to the current request HttpContext.
(Inherited from AspNetLayoutRendererBase.)
Public propertyItemSeparator
Separator between key/value pair, and the next pair. Only used for Flat
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyLowerCaseKeys
Convert the key to lowercase if true, otherwise render the raw value of key. Default is false.
Public propertyOutputFormat
Determines how the output is rendered. Possible Value: FLAT, JSON. Default is FLAT.
Public propertySingleAsArray Obsolete.
Get or set whether single key/value-pair be rendered as Json-Array.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Public propertyValueSeparator
Separator between value and key. Only used for Flat
Public propertyValuesOnly
Only render values if true, otherwise render key/value pairs.
Top
Methods
  NameDescription
Protected methodAppend
Validates that the HttpContext is available and delegates append to subclasses.StringBuilder.
(Inherited from AspNetLayoutRendererBase.)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Inherited from AspNetLayoutRendererBase.)
Protected methodDoAppend
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 methodGetRenderedItemSeparator
Get the rendered ItemSeparator
Protected methodGetRenderedValueSeparator
Get the rendered ValueSeparator
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.)
Protected methodSerializePairs
Serialize multiple key/value pairs
Protected methodSerializeValues
Serialize multiple values
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
See Also
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.Web.LayoutRenderersAspNetLayoutRendererBase
      NLog.Web.LayoutRenderersAspNetLayoutMultiValueRendererBase
        NLog.Web.LayoutRenderersAspNetQueryStringLayoutRenderer
        NLog.Web.LayoutRenderersAspNetRequestCookieLayoutRenderer
        NLog.Web.LayoutRenderersAspNetRequestFormLayoutRenderer
        NLog.Web.LayoutRenderersAspNetRequestHeadersLayoutRenderer
        NLog.Web.LayoutRenderersAspNetRequestRouteParametersRenderer
        NLog.Web.LayoutRenderersAspNetRequestWebSocketRequestedProtocolsLayoutRenderer
        NLog.Web.LayoutRenderersAspNetResponseCookieLayoutRenderer
        NLog.Web.LayoutRenderersAspNetResponseHeadersLayoutRenderer
        NLog.Web.LayoutRenderersAspNetUserClaimLayoutRenderer