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

NLog.LayoutRenderers.Wrappers.ReplaceNewLinesLayoutRendererWrapper

Replaces newline characters from the result of another layout renderer with spaces.
public string Replacement { get; set; }

Gets or sets a value indicating the string that should be used to replace newlines.

public string ReplaceNewLines { get; set; }

Gets or sets a value indicating the string that should be used to replace newlines (alias for Replacement)