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

NLog.LayoutRenderers.ProcessDirLayoutRenderer

The executable directory from the MainModule FileName, using the current process GetCurrentProcess
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.

Initializes a new instance of the ProcessDirLayoutRenderer class.