Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Registry layout renderer

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

A value from the Registry. 

Supported in

Configuration Syntax

${registry:value=String:key=String:defaultValue=String}
Read more about using the Configuration File.

Parameters

  • Registry Options
  • value - Registry value name.
  • key - Registry key. Required.
    Must have one of the forms:
    • HKLM\Key\Full\Name
    • HKEY_LOCAL_MACHINE\Key\Full\Name
    • HKCU\Key\Full\Name
    • HKEY_CURRENT_USER\Key\Full\Name
  • defaultValue - Value to be output when the specified registry key or value is not found.