NLog.Layouts.JsonLayout
A specialized layout that renders JSON-formatted events.
Gets the array of attributes' configurations.
Gets or sets whether to flatten nested object properties using dotted notation (avoid nested JSON output)
Should forward slashes be escaped? If true, / will be converted to \/
Gets or sets the option to exclude null/empty properties from the log event (as JSON)
List of property names to exclude when IncludeEventProperties is true
Obsolete and replaced by IncludeEventProperties with NLog v5.
Gets or sets the option to include all properties from the log event (as JSON)
Gets or sets whether to include the contents of the Properties dictionary.
Gets or sets whether to include the contents of the GlobalDiagnosticsContext dictionary.
Obsolete and replaced by IncludeScopeProperties with NLog v5.
Gets or sets a value indicating whether to include contents of the MappedDiagnosticsContext dictionary.
Obsolete and replaced by IncludeScopeProperties with NLog v5.
Gets or sets a value indicating whether to include contents of the MappedDiagnosticsLogicalContext dictionary.
Gets or sets whether to include the contents of the ScopeContext properties-dictionary.
Auto indent and create new lines
How far should the JSON serializer follow object references before backing off
Gets or sets the option to render the empty object value {}
Gets or sets the option to suppress the extra spaces in the output json.
public JsonLayout()
Initializes a new instance of the JsonLayout class.