Click or drag to resize

AspNetLayoutRendererBase Class

Base class for ASP.NET layout renderers.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.Web.LayoutRenderersAspNetLayoutRendererBase
      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 AspNetLayoutRendererBase : LayoutRenderer

The AspNetLayoutRendererBase type exposes the following members.

Constructors
  NameDescription
Protected methodAspNetLayoutRendererBase
Initializes a new instance of the AspNetLayoutRendererBase class
Top
Properties
  NameDescription
Public propertyHttpContextAccessor
Provides access to the current request HttpContext.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Top
Methods
  NameDescription
Protected methodAppend
Validates that the HttpContext is available and delegates append to subclasses.StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Overrides LayoutRendererCloseLayoutRenderer.)
Protected methodDoAppend
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
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 methodStatic memberRegister(String, FuncLogEventInfo, HttpContext, LoggingConfiguration, Object) Obsolete.
Register a custom layout renderer with a callback function func. The callback receives the logEvent and the current configuration.
Public methodStatic memberRegister(String, FuncLogEventInfo, HttpContextBase, LoggingConfiguration, Object) Obsolete.
Register a custom layout renderer with a callback function func. The callback receives the logEvent and the current configuration.
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
See Also
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.Web.LayoutRenderersAspNetLayoutRendererBase
      NLog.Web.LayoutRenderersAspNetItemValueLayoutRenderer
      NLog.Web.LayoutRenderersAspNetLayoutMultiValueRendererBase
      NLog.Web.LayoutRenderersAspNetMvcActionRenderer
      NLog.Web.LayoutRenderersAspNetMvcControllerRenderer
      NLog.Web.LayoutRenderersAspNetMvcLayoutRendererBase
      NLog.Web.LayoutRenderersAspNetRequestBidirectionalStreamLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestClientCertificateLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestConnectionIdLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestContentLength
      NLog.Web.LayoutRenderersAspNetRequestContentTypeLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestDurationLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestHasPostedBodyLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestHostLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestHttpMethodRenderer
      NLog.Web.LayoutRenderersAspNetRequestIpLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestIsWebSocketLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestLocalIpLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestLocalPortLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestPostedBodyLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestReferrerRenderer
      NLog.Web.LayoutRenderersAspNetRequestRemotePortLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestTrackingConsentLayoutRenderer
      NLog.Web.LayoutRenderersAspNetRequestUrlRenderer
      NLog.Web.LayoutRenderersAspNetRequestUserAgent
      NLog.Web.LayoutRenderersAspNetRequestValueLayoutRenderer
      NLog.Web.LayoutRenderersAspNetResponseContentLength
      NLog.Web.LayoutRenderersAspNetResponseContentTypeLayoutRenderer
      NLog.Web.LayoutRenderersAspNetResponseHasStartedLayoutRenderer
      NLog.Web.LayoutRenderersAspNetResponseStatusCodeRenderer
      NLog.Web.LayoutRenderersAspNetSessionIdLayoutRenderer
      NLog.Web.LayoutRenderersAspNetSessionValueLayoutRenderer
      NLog.Web.LayoutRenderersAspNetTraceIdentifierLayoutRenderer
      NLog.Web.LayoutRenderersAspNetUserAuthTypeLayoutRenderer
      NLog.Web.LayoutRenderersAspNetUserIdentityLayoutRenderer
      NLog.Web.LayoutRenderersAspNetUserIsAuthenticatedLayoutRenderer