SPLog.WriteLogTag-Methode (UInt32, String, Exception, LogLevel, Object[])
Kurzform von [WriteLog(stringmessage,LogLevellevel)]. Protokolliert die Nachricht und die Stapelüberwachung der Ausnahme als Nachricht.
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub WriteLogTag ( _
tagID As UInteger, _
format As String, _
exception As Exception, _
level As LogLevel, _
ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim tagID As UInteger
Dim format As String
Dim exception As Exception
Dim level As LogLevel
Dim args As Object()
instance.WriteLogTag(tagID, format, exception, _
level, args)
public void WriteLogTag(
uint tagID,
string format,
Exception exception,
LogLevel level,
params Object[] args
)
Parameter
tagID
Typ: System.UInt32Tag für die Nachricht.
format
Typ: System.StringFormatzeichenfolge für Nachricht
exception
Typ: System.ExceptionDie Ausnahme, deren Stapelüberwachung protokolliert werden.
level
Typ: Microsoft.SharePoint.Upgrade.LogLevelGewünschte Protokollebene.
args
Typ: []Argumente für format