不是文本日志部分的日志条目的格式

文本日志可以包含不属于文本日志标头或文本日志部分的日志条目。 此类条目不与任何节关联,一般情况下,这些条目在各节之间交错。 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