SPLog.WriteLog Method (String, Exception, LogLevel)
Writes the specified message and exception 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, _
exception As Exception, _
level As LogLevel _
)
'Usage
Dim instance As SPLog
Dim output As String
Dim exception As Exception
Dim level As LogLevel
instance.WriteLog(output, exception, level)
public void WriteLog(
string output,
Exception exception,
LogLevel level
)
Parameters
output
Type: System.StringA string containing the warning that will be written to the event log.
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.