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

NLog.LayoutRenderers.CallSiteLayoutRenderer

The call site (class name, method name and source information).
public bool CaptureStackTrace { get; set; }

Logger should capture StackTrace, if it was not provided manually

public bool ClassName { get; set; }

Gets or sets a value indicating whether to render the class name.

public bool CleanNamesOfAnonymousDelegates { get; set; }

Gets or sets a value indicating whether the method name will be cleaned up if it is detected as an anonymous delegate.

public bool CleanNamesOfAsyncContinuations { get; set; }

Gets or sets a value indicating whether the method and class names will be cleaned up if it is detected as an async continuation (everything after an await-statement inside of an async method).

public bool FileName { get; set; }

Gets or sets a value indicating whether to render the source file name and line number.

public bool IncludeNamespace { get; set; }

Gets or sets a value indicating whether to render the include the namespace with ClassName.

public bool IncludeSourcePath { get; set; }

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

public bool MethodName { get; set; }

Gets or sets a value indicating whether to render the method name.

public int SkipFrames { get; set; }

Gets or sets the number of frames to skip.