如何为 SharePoint 跟踪日志启用 Reporting Services 事件 (ULS)

从 SQL Server 2008 R2 开始,SharePoint 集成模式下的 Reporting Services 服务器可以将 Reporting Services 事件写入 SharePoint 统一日志记录服务 (ULS)。特定于 Reporting Services 的类别可在 SharePoint 管理中心的“监视”页上提供。

先决条件

在安装了用于 SharePoint 产品的 Microsoft SQL Server 2008 R2 Reporting Services 外接程序之后,报表服务器集成功能将在 SharePoint 管理中心中激活。若要激活报表服务器功能,请在 SharePoint 管理中心的站点设置中使用 Reporting Services 页。

如果 Reporting Services 功能在网站集功能列表中未显示,则没有安装 Reporting Services 外接程序。

如果安装了 Reporting Services 外接程序,则按照本主题中的说明为 SharePoint 跟踪日志启用特定于 Reporting Services 的类别。

在 SharePoint 跟踪日志中启用和禁用 Reporting Services 类别

  1. 从 SharePoint 管理中心

  2. 单击**“监视”**。

  3. 在**“报告”组中单击“配置诊断日志记录”**。

  4. 在类别列表中找到 SQL Server Reporting Services

  5. 单击加号 (+) 以展开 SQL Server Reporting Services 下的子类别。

  6. 选择要添加到跟踪日志中的子类别。

  7. 在类别列表的底部,为**“要报告给跟踪日志的严重程度最低的事件”**选择一个事件级别。

注意注意

Reporting Services 不支持“要报告给事件日志的严重程度最低的事件”。已忽略该选项。

建议配置

以下日志记录选项建议用作标准配置:

  • HTTP 重定向程序

  • SOAP 客户端代理

  • 如果您遇到配置问题,则添加**“配置页”**。

配置诊断日志记录

有关在 SharePoint 2010 管理中心配置 SharePoint 服务器上的诊断日志记录的详细信息和步骤,请参阅 Configure diagnostic logging settings (Windows SharePoint Services)(配置诊断日志记录设置,Windows SharePoint Services)。