AppSettingLayoutRenderer Class |
Namespace: NLog.LayoutRenderers
The AppSettingLayoutRenderer type exposes the following members.
Name | Description | |
---|---|---|
AppSettingLayoutRenderer | Initializes a new instance of the AppSettingLayoutRenderer class |
Name | Description | |
---|---|---|
Default |
The default value to render if the AppSetting value is null.
| |
Item |
The AppSetting item-name
|
Name | Description | |
---|---|---|
Render |
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.) | |
ToString | Returns a string that represents the current object. (Inherited from LayoutRenderer.) |
1${appsetting:item=mysetting:default=mydefault} - produces "mydefault" if no appsetting