log4net SDK Reference

XmlLayout Members

XmlLayout overview

Public Instance Constructors

XmlLayout Overloaded. Initializes a new instance of the XmlLayout class.

Public Instance Properties

Base64EncodeMessage Set whether or not to base64 encode the message.
Base64EncodeProperties Set whether or not to base64 encode the property values.
ContentType (inherited from XmlLayoutBase) Gets the content type output by this layout.
Footer (inherited from LayoutSkeleton) The footer for the layout format.
Header (inherited from LayoutSkeleton) The header for the layout format.
IgnoresException (inherited from LayoutSkeleton) Flag indicating if this layout handles exceptions
InvalidCharReplacement (inherited from XmlLayoutBase) The string to replace characters that can not be expressed in XML with.

Not all characters may be expressed in XML. This property contains the string to replace those that can not with. This defaults to a ?. Set it to the empty string to simply remove offending characters. For more details on the allowed character ranges see http://www.w3.org/TR/REC-xml/#charsets Character replacement will occur in the log message, the property names and the property values.

LocationInfo (inherited from XmlLayoutBase) Gets a value indicating whether to include location information in the XML events.
Prefix The prefix to use for all element names

Public Instance Methods

ActivateOptions Initialize layout options
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
Format (inherited from XmlLayoutBase) Produces a formatted string.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FormatXml Does the actual writing of the XML.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

XmlLayout Class | log4net.Layout Namespace