Click or drag to resize

OnHasActivityTraceLayoutRendererWrapper Class

Only outputs the inner layout when Current is active
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderers.WrappersWrapperLayoutRendererBase
      NLog.LayoutRenderers.WrappersOnHasActivityTraceLayoutRendererWrapper

Namespace:  NLog.LayoutRenderers.Wrappers
Assembly:  NLog.DiagnosticSource (in NLog.DiagnosticSource.dll) Version: 6.0.2+0eed46de76afdd1b77c37573a4147a2de650621d
Syntax
public sealed class OnHasActivityTraceLayoutRendererWrapper : WrapperLayoutRendererBase

The OnHasActivityTraceLayoutRendererWrapper type exposes the following members.

Constructors
  NameDescription
Public methodOnHasActivityTraceLayoutRendererWrapper
Initializes a new instance of the OnHasActivityTraceLayoutRendererWrapper 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.)
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
Examples
${onhasactivity:, ActivityTraceId\: ${activity:traceid}}
See Also