AppSetting Layout Renderer

Julian edited this page Jan 25, 2015 · 5 revisions
Clone this wiki locally

Value from the App Settings configuration

From NLog 3.0+, in NLog.Extended

Configuration Syntax



Rendering Options

  • name - Key in the apps setting. Required.
  • Default - Default value if not present. Optional.


Example .config

        <add key="MyKey" value="MyApplication" />

Example renderer: produces MyApplication is this case.


Example#2 renderer: produces mydefault is this case.