Notification Services 事件格式

Notification Services 會以 XML 格式,將事件寫入應用程式記錄檔中。記錄項目會顯示事件的結構,部份記錄監視應用程式可以利用這個結構,從事件詳細資料中擷取資訊。

範例事件

下表提供寫入應用程式記錄檔的事件範例;事件是傳遞通知失敗所造成的。

事件標頭

日期:

1/14/2003

來源:

NotificationServices

時間:

13:23

種類:

類型:

錯誤

事件識別碼:

6043

使用者:

N/A

 

 

電腦:

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) 是電腦的本機時間 (本例為太平洋標準時間),<Notification Sent Time> 值 (9:23:17 PM) 是通用時間慣例 (UTC),與格林威治標準時間相同。

在 Windows XP 和 Windows Server 2003 中,事件描述底端的連結會出現錯誤和警告,其中包含用來識別事件的隱藏名稱/值組。當您按一下這個連結時,Windows 說明和支援中心會顯示事件的其他相關資訊。

請參閱

工作

檢視 Notification Services 事件

概念

Notification Services 事件的原因和解決方案

其他資源

Notification Services 錯誤和事件
設定 Notification Services 事件記錄
使用事件訊息

說明及資訊

取得 SQL Server 2005 協助