Click or drag to resize

ReplaceNewLinesLayoutRendererWrapper Class

Replaces newline characters from the result of another layout renderer with spaces.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersReplaceNewLinesLayoutRendererWrapper

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public sealed class ReplaceNewLinesLayoutRendererWrapper : WrapperLayoutRendererBase

The ReplaceNewLinesLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodReplaceNewLinesLayoutRendererWrapper
Initializes a new instance of the ReplaceNewLinesLayoutRendererWrapper 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 propertyReplacement
Gets or sets a value indicating the string that should be used to replace newlines.
Public propertyReplaceNewLines
Gets or sets a value indicating the string that should be used to replace newlines (alias for Replacement)
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
See Also