Share via


SPLog.WriteLogTag method (UInt32, String, LogLevel, Object[])

Logs the given formatted message with the given log level

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub WriteLogTag ( _
    tagID As UInteger, _
    format As String, _
    level As LogLevel, _
    ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim tagID As UInteger
Dim format As String
Dim level As LogLevel
Dim args As Object()

instance.WriteLogTag(tagID, format, level, _
    args)
public void WriteLogTag(
    uint tagID,
    string format,
    LogLevel level,
    params Object[] args
)

Parameters

  • format
    Type: System.String

    Format string for message to be logged

  • args
    Type: []

    args for format

See also

Reference

SPLog class

SPLog members

WriteLogTag overload

Microsoft.SharePoint.Upgrade namespace