Share via


SPLog.WriteLog method (String, LogLevel)

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 ( _
    output As String, _
    level As LogLevel _
)
'Usage
Dim instance As SPLog
Dim output As String
Dim level As LogLevel

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

Parameters

  • output
    Type: System.String

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

See also

Reference

SPLog class

SPLog members

WriteLog overload

Microsoft.SharePoint.Upgrade namespace