XmlElement Class |
Namespace: NLog.Layouts
The XmlElement type exposes the following members.
Name | Description | |
---|---|---|
XmlElement |
Initializes a new instance of the XmlElement class.
| |
XmlElement(String, Layout) |
Initializes a new instance of the XmlElement class.
|
Name | Description | |
---|---|---|
Attributes |
Gets the array of 'attributes' configurations for the element
(Inherited from XmlElementBase.) | |
Elements |
Gets the array of xml 'elements' configurations.
(Inherited from XmlElementBase.) | |
Encode |
Gets or sets whether output should be encoded with Xml-string escaping, or be treated as valid xml-element-value
| |
ExcludeProperties |
List of property names to exclude when IncludeAllProperties is true
(Inherited from XmlElementBase.) | |
IncludeEmptyValue |
Gets or sets whether a ElementValue with empty value should be included in the output
(Inherited from XmlElementBase.) | |
IncludeEventProperties |
Gets or sets the option to include all properties from the log event (as XML)
(Inherited from XmlElementBase.) | |
IncludeScopeProperties |
Gets or sets whether to include the contents of the ScopeContext dictionary.
(Inherited from XmlElementBase.) | |
IndentXml |
Auto indent and create new lines
(Inherited from XmlElementBase.) | |
Layout |
Value inside the element
| |
LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Layout.) | |
MaxRecursionLimit |
How far should the XML serializer follow object references before backing off
(Inherited from XmlElementBase.) | |
Name |
Name of the element
| |
PropertiesCollectionItemName |
XML element name to use for rendering IList-collections items
(Inherited from XmlElementBase.) | |
PropertiesElementKeyAttribute |
XML attribute name to use when rendering property-key
When null (or empty) then key-attribute is not included
(Inherited from XmlElementBase.) | |
PropertiesElementName |
XML element name to use when rendering properties
(Inherited from XmlElementBase.) | |
PropertiesElementValueAttribute |
XML 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
(Inherited from XmlElementBase.) | |
Value |
Value inside the element
|
Name | Description | |
---|---|---|
CloseLayout |
Closes the layout.
(Inherited from XmlElementBase.) | |
GetFormattedMessage |
Renders formatted output using the log event as context.
(Inherited from XmlElementBase.) | |
InitializeLayout |
Initializes the layout.
(Inherited from XmlElementBase.) | |
Precalculate |
Precalculates the layout for the specified log event and stores the result
in per-log event cache.
Only if the layout doesn't have [ThreadAgnostic] and doesn't contain layouts with [ThreadAgnostic].
(Inherited from Layout.) | |
Render(LogEventInfo) |
Renders formatted output using the log event as context.
(Inherited from Layout.) | |
Render(LogEventInfo, StringBuilder) |
Optimized version of Render(LogEventInfo) that works best when
override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
(Inherited from Layout.) | |
RenderFormattedMessage |
Renders formatted output using the log event as context.
(Inherited from XmlElementBase.) | |
ResolveServiceT |
Resolve from DI ServiceRepository (Inherited from Layout.) | |
ToString | Returns a string that represents the current object. (Inherited from XmlElementBase.) |