Share via


SPLog.WriteLog method (String, 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, _
    level As LogLevel, _
    ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim format As String
Dim level As LogLevel
Dim args As Object()

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

Parameters

  • format
    Type: System.String

    A format string that supplies formatting information.

  • 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