SPLog.WriteLog Method (String, Exception, LogLevel)

Writes the specified message and exception to the upgrade event log based on the specified log level.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub WriteLog ( _
    output As String, _
    exception As Exception, _
    level As LogLevel _
)
'Usage
Dim instance As SPLog
Dim output As String
Dim exception As Exception
Dim level As LogLevel

instance.WriteLog(output, exception, level)
public void WriteLog(
    string output,
    Exception exception,
    LogLevel level
)

Parameters

  • output
    Type: System.String

    A string containing the warning that will be written to the event log.

  • exception
    Type: System.Exception

    A System.Exception object that represents the exception whose stack trace is logged.

See Also

Reference

SPLog Class

SPLog Members

WriteLog Overload

Microsoft.SharePoint.Upgrade Namespace