VistaDB 6
VistaDB.Diagnostic Namespace / ILog Interface / WriteMessage Method
The severity enum value of the log message.
The number of stack frames back to the original logging method.
An Exception object attached to this log message, or null if none.
An XML document (as a string) with extended details about the message.
The application subsystem or logging category that the log message is associated with, which supports a dot-delimited hierarchy.
A simple single-line message caption.
Additional multi-line descriptive message (or may be null)


In This Topic
    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 severity As System.Diagnostics.TraceEventType, _
       ByVal skipFrames As System.Integer, _
       ByVal exception As System.Exception, _
       ByVal detailsXml As System.String, _
       ByVal category As System.String, _
       ByVal caption As System.String, _
       ByVal description 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 severity,
       System.int skipFrames,
       System.Exception exception,
       System.string detailsXml,
       System.string category,
       System.string caption,
       System.string description
    )

    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