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
objectMessage 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
intOnly messages must be above the minimum priority are processed.
eventId
intEvent number or identifier.
severity
TraceEventTypeLog entry severity as a TraceEventType enumeration.
title
stringAdditional 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