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

NLog.LayoutRenderers.Wrappers.FileSystemNormalizeLayoutRendererWrapper

Filters characters not allowed in the file names by replacing them with safe character.
public bool FSNormalize { get; set; }

Gets or sets a value indicating whether to modify the output of this renderer so it can be used as a part of file path (illegal characters are replaced with '_').