XmlLayout Class |
Namespace: NLog.Layouts
The XmlLayout type exposes the following members.
| Name | Description | |
|---|---|---|
| XmlLayout |
Initializes a new instance of the XmlLayout class.
| |
| XmlLayout(String, Layout) |
Initializes a new instance of the XmlLayout class.
|
| Name | Description | |
|---|---|---|
| Attributes |
Gets the array of 'attributes' configurations for the element
(Inherited from XmlElementBase.) | |
| ContextProperties |
Gets the collection of context properties that should be included with the other properties.
(Inherited from XmlElementBase.) | |
| ElementEncode |
Determines whether or not this attribute will be Xml encoded.
| |
| ElementName |
Name of the root XML element
| |
| Elements |
Gets the array of xml 'elements' configurations.
(Inherited from XmlElementBase.) | |
| ElementValue |
Value inside the root XML element
| |
| ExcludeProperties |
List of property names to exclude when IncludeEventProperties is (Inherited from XmlElementBase.) | |
| IncludeEmptyValue |
Gets or sets whether empty XML-element 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.) | |
| 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.) | |
| 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.) |
| 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.
Skips context capture when Layout have [ThreadAgnostic], and only contains 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.) |