Notification Services 事件格式

Notification Services 将事件以 XML 格式写入到应用程序日志中。日志项显示事件的结构,某些日志监视应用程序可用这种事件结构从事件详细信息中提取信息。

示例事件

下表显示了一个写入应用程序日志的事件示例;该事件是由传递通知失败而造成的。

事件标头

日期:

1/14/2003

源:

NotificationServices

时间:

13:23

类别:

类型:

错误

事件 ID:

6043

用户:

不适用

 

 

计算机:

MyComputer

 

 

说明

<NotificationServicesEvent>
  <Description>
    A delivery failure was reported.
  </Description>
  <Context>
    <EventParameters>
      <Distributor Id>1</Distributor Id>
      <Distributor Name>MoviesDist1</Distributor Name>
      <Delivery Channel Name>FileChannel</Delivery Channel Name>
      <Notification Id>199</Notification Id>
      <NotificationClassName>Movie</NotificationClassName>
      <Notification Status Info></Notification Status Info>
      <Notification Text></Notification Text>
      <Notification Sent Time>1/14/2005 9:23:17 PM
      </Notification Sent Time>
    </EventParameters>
  </Context>
  <Instance>Entertainment</Instance>
  <ApplicationName>Movies</ApplicationName>
  <Component>Distributor</Component>
  <ComponentDetails>
    DistributorName: MoviesDist1
  </ComponentDetails>
  <Thread>14</Thread>
</NotificationServicesEvent>  
For more information, see Help and Support Center at https://go.microsoft.com/fwlink/events.asp.

事件说明包含一份事件说明、关于该事件的上下文信息(如分发服务器和通知类信息)以及实例、应用程序和组件名称。

请注意事件标头与事件说明之间的日期差别。事件的时间 (13:23) 是计算机本地的时间(本例中是太平洋标准时间),而**<通知发送时间>**值(下午 9:23:17)是通用协调时间 (UTC),与格林尼治标准时间相同。

在 Windows XP 和 Windows Server 2003 中,事件说明底部的链接显示为错误和警告,并且包含标识事件的隐藏名称/值对。单击链接后,Windows 帮助和支持中心将显示关于事件的其他信息。

请参阅

任务

查看 Notification Services 事件

概念

Notification Services 事件的原因和解决方法

其他资源

Notification Services 错误和事件
配置 Notification Services 事件日志记录
使用事件消息

帮助和信息

获取 SQL Server 2005 帮助