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

NLog.LayoutRenderers.Wrappers.PaddingLayoutRendererWrapper

Applies padding to another layout output.

Gets or sets a value indicating whether a value that has been truncated (when FixedLength is true) will be left-aligned (characters removed from the right) or right-aligned (characters removed from the left). The default is left alignment.

public bool FixedLength { get; set; }

Gets or sets a value indicating whether to trim the rendered text to the absolute value of the padding length.

public char PadCharacter { get; set; }

Gets or sets the padding character.

public int Padding { get; set; }

Gets or sets the number of characters to pad the output to.