Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Identity layout renderer

NLog documentation is currently being re-organized to use the wiki format. Some content is still missing or incomplete.
We need volunteers to help maintain and organize this Wiki. Please contact Jarek if you are interested in helping out.

Thread identity information (name and authentication information). 

Supported in

Configuration Syntax

${identity:fSNormalize=Boolean:authType=Boolean:separator=String
          :name=Boolean:isAuthenticated=Boolean}
Read more about using the Configuration File.

Parameters

  • Advanced Options
  • fSNormalize - Indicates whether to modify the output of this renderer so it can be used as a part of file path (illegal characters are replaced with '_').Boolean Default: False
  • Rendering Options
  • authType - Indicates whether to render Thread.CurrentPrincipal.Identity.AuthenticationType.Boolean Default: True
  • separator - Separator to be used when concatenating parts of identity information. Default: :
  • name - Indicates whether to render Thread.CurrentPrincipal.Identity.Name.Boolean Default: True
  • isAuthenticated - Indicates whether to render Thread.CurrentPrincipal.Identity.IsAuthenticated.Boolean Default: True

Fatal error: Call to undefined function ad_script_footer() in /home/jkowalski/nlog-project.org/wiki/skins/NLog.php on line 297