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

NLog.LayoutRenderers.ExceptionDataLayoutRenderer

Render information of Data for the exception passed to the logger call
public bool BaseException { get; set; }

Gets or sets whether to render innermost Exception from GetBaseException

public CultureInfo Culture { get; set; }

Gets or sets the culture used for rendering.

public string Format { get; set; }

Format string for conversion from object to string.

public string Item { get; set; }

Gets or sets the key to search the exception Data for