WriteMessage Method (ILog)
In This Topic
Write a complete log message to the log, optionally extended with XML details and broadest API features.
Syntax
'Declaration
Sub WriteMessage( _
ByVal As System.Diagnostics.TraceEventType, _
ByVal As System.Integer, _
ByVal As System.Exception, _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.String _
)
'Usage
Dim instance As ILog
Dim severity As System.Diagnostics.TraceEventType
Dim skipFrames As System.Integer
Dim exception As System.Exception
Dim detailsXml As System.String
Dim category As System.String
Dim caption As System.String
Dim description As System.String
instance.WriteMessage(severity, skipFrames, exception, detailsXml, category, caption, description)
void WriteMessage(
System.Diagnostics.TraceEventType ,
System.int ,
System.Exception ,
System.string ,
System.string ,
System.string ,
System.string
)
Parameters
- severity
- The severity enum value of the log message.
- skipFrames
- The number of stack frames back to the original logging method.
- exception
- An Exception object attached to this log message, or null if none.
- detailsXml
- An XML document (as a string) with extended details about the message.
- category
- The application subsystem or logging category that the log message is associated with, which supports a dot-delimited hierarchy.
- caption
- A simple single-line message caption.
- description
- Additional multi-line descriptive message (or may be null)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also