SPLog.WriteLog 方法 (String, Exception, LogLevel)

根据指定的日志级别升级事件日志中写入指定的消息和异常。

命名空间:  Microsoft.SharePoint.Upgrade
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub WriteLog ( _
    output As String, _
    exception As Exception, _
    level As LogLevel _
)
用法
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
)

参数

  • output
    类型:System.String

    一个字符串,包含将写入到事件日志警告。

  • exception
    类型:System.Exception

    表示异常的堆栈跟踪记录的System.Exception对象。

另请参阅

引用

SPLog 类

SPLog 成员

WriteLog 重载

Microsoft.SharePoint.Upgrade 命名空间