Click or drag to resize

SubstringLayoutRendererWrapper Class

Substring the result
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersSubstringLayoutRendererWrapper

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public sealed class SubstringLayoutRendererWrapper : WrapperLayoutRendererBase

The SubstringLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodSubstringLayoutRendererWrapper
Initializes a new instance of the SubstringLayoutRendererWrapper class
Top
Properties
  NameDescription
Public propertyInner
Gets or sets the wrapped layout. [DefaultParameter] so Inner: is not required if it's the first
(Inherited from WrapperLayoutRendererBase.)
Public propertyLength
Gets or sets the length in characters. If null, then the whole string
Public propertyStart
Gets or sets the start index.
Top
Methods
  NameDescription
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
Remarks
Examples
${substring:${level}:start=2:length=2} ${substring:${level}:start=-2:length=2} ${substring:Inner=${level}:start=2:length=2}
See Also