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

NLog.LayoutRenderers.VariableLayoutRenderer

Render a NLog Configuration variable assigned from API or loaded from config-file
public Layout ActiveLayout { get; }

Gets the configuration variable layout matching the configured Name

public string Default { get; set; }

Gets or sets the default value to be used when the variable is not set.

public string Name { get; set; }

Gets or sets the name of the NLog variable.