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

NLog.LayoutRenderers.CallSiteFileNameLayoutRenderer

The call site source file name. Full callsite CallSiteLayoutRenderer
public bool CaptureStackTrace { get; set; }

Logger should capture StackTrace, if it was not provided manually

public bool IncludeSourcePath { get; set; }

Gets or sets a value indicating whether to include source file path.

public int SkipFrames { get; set; }

Gets or sets the number of frames to skip.