SPLog.WriteLog-Methode (String, Exception, LogLevel)
Der angegebenen Meldung und Ausnahme in Upgrade basierend auf der angegebenen Protokollebene Ereignisprotokoll geschrieben.
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
)
Parameter
output
Typ: System.StringEine Zeichenfolge mit der Warnung, die in das Ereignisprotokoll geschrieben werden soll.
exception
Typ: System.ExceptionEin System.Exception -Objekt, das die Ausnahme darstellt, deren Stapelüberwachung angemeldet ist.
level
Typ: Microsoft.SharePoint.Upgrade.LogLevelEin LogLevel -Wert, der die Protokollebene angibt.