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.StringA format string that supplies formatting information.
exception
Type: System.ExceptionA System.Exception object that represents the exception whose stack trace is logged.
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.