共用方式為


不屬於文字記錄區段的記錄專案格式

文字記錄可以包含不屬於文字記錄標頭或文字記錄區段的記錄項目。 此類條目不與任何部分相關聯,並且通常穿插在部分之間。 The format of such log entries consists of an entry_prefix field, a time_stamp field, an event_category field, and a formatted_message field, as follows:

entry_prefix time_stamp event_category formatted_message

下列清單說明記錄項目的欄位:

entry_prefix field
指出訊息類型。 The entry_prefix field is always present and contains one of the strings that are listed in the left-hand column of the following table, where the meaning of the string is indicated in the right-hand column.

Entry_prefix field Message type
"!!!  "

文字記錄中的錯誤訊息

"!    "

文字記錄中的警告訊息

"   . "

文字記錄中的資訊訊息 (錯誤訊息或警告訊息除外)

"     "

應用程式安裝文字日誌中的資訊訊息 (錯誤訊息或警告訊息除外)

time_stamp field
指出記錄事件發生的系統時間。 The time_stamp field is optional and will be present only if an installation application requested that a time stamp be included for a log entry. The format of the time_stamp field is the same as that described in Format of a Text Log Section Header.

event_category field
指出建立記錄項目的 SetupAPI 作業類別。 The event_category field is usually present, but is not required. If present, the event_category field contains one of the strings that are listed in Format of a Text Log Section Body.

formatted_message
包含日誌項目特有的資訊。 The formatted_message field is generally present, but is not required.

Note The maximum length, in characters, of a log entry is 336.

下列文字記錄項目範例取自裝置安裝文字記錄。 在此範例中,前兩個記錄項目不是文字記錄區段的一部分。 使用者模式隨插即用 (PnP) 管理員會在裝置安裝文字記錄檔中寫入這些記錄專案,以指出 PCI 裝置伺服器端安裝的開始。 伺服器端安裝接著會建立文字記錄區段,該區段由範例中前兩個記錄項目後面的文字記錄區段標頭所指出。

Be aware that the event_category field for the first two log entries indicates that the user-mode PnP manager wrote these log entries.

   . ump: Start service install for: PCI\VEN_104C&DEV_8019&SUBSYS_8010104C&REV_00\3&61aaa01&0&38
   . ump: Creating Install Process: rundll32.exe

>>>  [Device Install - PCI\VEN_104C&DEV_8019&SUBSYS_8010104C&REV_00\3&61aaa01&0&38]
>>>  2005/02/13 22:06:28.109: Section start