Table of Contents

Class XmlLogEntry

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Extends the LogEntry to add XML support.

public class XmlLogEntry : LogEntry, ICloneable
Inheritance
XmlLogEntry
Implements
Inherited Members

Constructors

XmlLogEntry()

Initialize a new instance of the XmlLogEntry class.

public XmlLogEntry()

XmlLogEntry(object, ICollection<string>, int, int, TraceEventType, string, IDictionary<string, object>)

Initialize a new instance of the XmlLogEntry class with the specified options.

public XmlLogEntry(object message, ICollection<string> category, int priority, int eventId, TraceEventType severity, string title, IDictionary<string, object> properties)

Parameters

message object

Message body to log. Value from ToString() method from message object.

category ICollection<string>

Collection of category names used to route the log entry to a one or more sinks.

priority int

Only messages must be above the minimum priority are processed.

eventId int

Event number or identifier.

severity TraceEventType

Log entry severity as a TraceEventType enumeration.

title string

Additional description of the log entry message.

properties IDictionary<string, object>

Dictionary of key/value pairs to record.

Properties

Xml

Gets or sets the XML to log.

public XPathNavigator Xml { get; set; }

Property Value

XPathNavigator