SPLog.WriteLog Method (String, Exception, LogLevel, Object )

Writes the specified message 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 ( _
    format As String, _
    exception As Exception, _
    level As LogLevel, _
    ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim format As String
Dim exception As Exception
Dim level As LogLevel
Dim args As Object()

instance.WriteLog(format, exception, level, _
    args)
public void WriteLog(
    string format,
    Exception exception,
    LogLevel level,
    params Object[] args
)

Parameters

  • format
    Type: System.String

    A format string that supplies formatting information.

  • exception
    Type: System.Exception

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

  • args
    Type: []

    An Object array containing zero or more objects to format.

See Also

Reference

SPLog Class

SPLog Members

WriteLog Overload

Microsoft.SharePoint.Upgrade Namespace