You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ElementName - Name of the top level XML element Default: logevent
ElementValue - Value inside the top level XML element Layout
ElementEncode - Xml Encode the value for the top level XML element Boolean Default: True
Ensures always valid XML, but gives a performance hit
IndentXml - Insert newlines and simplistic indention of output. Boolean. Default: False
IncludeEmptyValue - Whether a ElementValue with empty value should be included in the output Boolean Default: False
MaxRecursionLimit - How far should the XML serializer follow object references before backing off. Integer. Default 1 (0 = No object reflection)
IncludeEventProperties - Include all events properties of a logevent? Default: false.
Before NLog 5.0 option was named IncludeAllProperties
IncludeScopeProperties - Indicates whether to include ScopeContext Properties dictionary. Default: false.
Before NLog 5.0 option was named IncludeMdlc or IncludeMdc
ExcludeProperties - Comma separated string with names which properties to exclude. Only used when IncludeEventProperties is true. Case sensitive. Default empty When a name contains a comma, single quote the value. E.g. 'value,withquote',value2.
PropertiesElementName - Element name to use when rendering properties. Support string-format where {0} means property-key-name. Skips closing element tag when having configured PropertiesElementValueAttribute
PropertiesElementKeyAttribute - Attribute name to use when rendering property-key. When null (or empty) then key-attribute is not included. Will replace newlines in attribute-value with
PropertiesElementValueAttribute - Attribute name to use when rendering property-value. When null (or empty) then value-attribute is not included and value is formatted as XML-element-value. Skips closing element tag when using attribute for value Will replace newlines in attribute-value with
PropertiesCollectionItemName - Element name to use for rendering IList-collections items