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

NLog.LayoutRenderers.BaseDirLayoutRenderer

The current application domain's base 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.

public bool FixTempDir { get; set; }

Fallback to the base dir of current process, when AppDomain.BaseDirectory is Temp-Path (.NET Core 3 - Single File Publish)

public bool ProcessDir { get; set; }

Use base dir of current process. Alternative one can just use ${processdir}

Initializes a new instance of the BaseDirLayoutRenderer class.