Service Bus for Windows Server 疑难解答

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

与其他运行在 Windows Server 上的服务器应用程序类似,Service Bus for Windows Server 将所有错误、警告和信息事件都写入事件查看器。这些事件将显示在“Windows 事件查看器”应用程序的应用程序日志中。

事件查看器使用以下监视器来确定由 Service Bus for Windows Server 生成的事件:

  • Service Bus 消息代理

  • Service Bus 网关

  • Fabric

通过事件查看器获取 Service Bus for Windows Server 事件

默认情况下不会跟踪详细的 Service Bus for Windows Server 事件。此过程介绍如何使用事件查看器来启用事件跟踪并找到 Service Bus for Windows Server 事件。

在事件查看器中查看事件

请执行以下操作:

  1. 打开事件查看器。在**“查看”菜单上,单击“显示分析和调试日志”。在“应用程序和服务日志”下找到 Service Bus for Windows Server 的“跟踪”**通道日志,然后找到 Microsoft-ServiceBus

  2. 右键单击**“分析和调试”,然后单击“启用日志记录”复选框以启动事件跟踪。有关通道的详细信息,请参阅“Windows 事件日志”中的“事件日志和通道”**。

  3. Service Bus for Windows Server 事件将显示在**“调试”**通道的事件窗口中。双击列表中的事件可查看详细信息。你可以按 XML 或“友好视图”格式查看事件。