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

NLog.LayoutRenderers.TempDirLayoutRenderer

A temporary directory.
public string Dir { get; set; }

Gets or sets the name of the directory to be Path.Combine()'d with the directory name.

public string File { get; set; }

Gets or sets the name of the file to be Path.Combine()'d with the directory name.