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

NLog.LayoutRenderers.IdentityLayoutRenderer

Thread identity information (name and authentication information).
public bool AuthType { get; set; }

Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.AuthenticationType.

public bool IsAuthenticated { get; set; }

Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.IsAuthenticated.

public bool Name { get; set; }

Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.Name.

public string Separator { get; set; }

Gets or sets the separator to be used when concatenating parts of identity information.