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.StringA format string that supplies formatting information.
level
Type: Microsoft.SharePoint.Upgrade.LogLevelA LogLevel value that specifies the log level.
args
Type: []An Object array containing zero or more objects to format.