JsonAttribute Class |
Namespace: NLog.Layouts
The JsonAttribute type exposes the following members.
Name | Description | |
---|---|---|
JsonAttribute |
Initializes a new instance of the JsonAttribute class.
| |
JsonAttribute(String, Layout) |
Initializes a new instance of the JsonAttribute class.
| |
JsonAttribute(String, Layout, Boolean) |
Initializes a new instance of the JsonAttribute class.
|
Name | Description | |
---|---|---|
DefaultValue |
Gets or sets the fallback value when result value is not available
| |
Encode |
Gets or sets whether output should be encoded as Json-String-Property, or be treated as valid json.
| |
EscapeForwardSlash |
Should forward slashes be escaped? If true, / will be converted to \/
| |
EscapeUnicode |
Gets or sets a value indicating whether to escape non-ascii characters
| |
IncludeEmptyValue |
Gets or sets whether an attribute with empty value should be included in the output
| |
Layout |
Gets or sets the layout that will be rendered as the attribute's value.
| |
Name |
Gets or sets the name of the attribute.
| |
ValueType |
Gets or sets the result value type, for conversion of layout rendering output
|