Click or drag to resize

JsonEncodeLayoutRendererWrapper Class

Escapes output of another layout using JSON rules.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersJsonEncodeLayoutRendererWrapper

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

The JsonEncodeLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodJsonEncodeLayoutRendererWrapper
Initializes a new instance of the JsonEncodeLayoutRendererWrapper class
Top
Properties
  NameDescription
Public propertyEscapeForwardSlash
Should forward slashes be escaped? If true, / will be converted to \/
Public propertyEscapeUnicode
Gets or sets a value indicating whether to escape non-ascii characters
Public propertyInner
Gets or sets the wrapped layout. [DefaultParameter] so Inner: is not required if it's the first
(Inherited from WrapperLayoutRendererBase.)
Public propertyJsonEncode
Gets or sets whether output should be encoded with Json-string escaping.
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