<PackageReference Include="NLog" Version="6.2.2" />

NLog.Targets.TargetPropertyWithContext

Attribute details for TargetWithContext
public Layout DefaultValue { get; set; }

Gets or sets the fallback value when result value is not available

public bool IncludeEmptyValue { get; set; }

Gets or sets whether empty property value should be included in the output.

public Layout Layout { get; set; }

Gets or sets the layout used for rendering the property value.

public string Name { get; set; }

Gets or sets the name of the property.

public Type PropertyType { get; set; }

Gets or sets the type of the property.

public Layout Value { get; set; }

Gets or sets the layout used for rendering the property value. Alias for Layout

Initializes a new instance of the TargetPropertyWithContext class.

public TargetPropertyWithContext(string name, Layout layout)

Initializes a new instance of the TargetPropertyWithContext class.

public object RenderValue(LogEventInfo logEvent)

Render Result Value