Click or drag to resize

WrapperLayoutRendererBase Class

Base class for LayoutRenderers which wrapping other LayoutRenderers. This has the Inner property (which is default) and can be used to wrap.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      More...

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public abstract class WrapperLayoutRendererBase : LayoutRenderer

The WrapperLayoutRendererBase type exposes the following members.

Constructors
  NameDescription
Protected methodWrapperLayoutRendererBase
Initializes a new instance of the WrapperLayoutRendererBase class
Top
Properties
  NameDescription
Public propertyInner
Gets or sets the wrapped layout. [DefaultParameter] so Inner: is not required if it's the first
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
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Inherited from LayoutRenderer.)
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.
(Overrides LayoutRendererInitializeLayoutRenderer.)
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Protected methodRenderInner
Renders the inner layout contents.
Protected methodRenderInnerAndTransform
Appends the rendered output from Inner-layout and transforms the added output (when necessary)
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.)
Protected methodTransform(String)
Transforms the output of another layout.
Protected methodTransform(LogEventInfo, String)
Transforms the output of another layout.
Top
Examples
${uppercase:${level}} //[DefaultParameter] ${uppercase:Inner=${level}}
See Also
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersCachedLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersFileSystemNormalizeLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersJsonEncodeLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersLeftLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersLowercaseLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersNoRawValueLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersObjectPathRendererWrapper
      NLog.LayoutRenderers.WrappersOnExceptionLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersOnHasActivityTraceLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersOnHasPropertiesLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersPaddingLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersReplaceLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersReplaceNewLinesLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersRightLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersRot13LayoutRendererWrapper
      NLog.LayoutRenderers.WrappersSubstringLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersTrimWhiteSpaceLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersUppercaseLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersUrlEncodeLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersWhenEmptyLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersWhenLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersWrapLineLayoutRendererWrapper
      NLog.LayoutRenderers.WrappersWrapperLayoutRendererBuilderBase
      NLog.LayoutRenderers.WrappersXmlEncodeLayoutRendererWrapper