Agent messages: format

An agent log message consists of five fields. The format of the message is:

<Timestamp> <Mnemonic> <Severity> <UMI> <MessageText>

The following is an example message, of severity ERROR, generated by the FileOnOff agent's online entry point. The message is generated when the agent attempts to bring online a resource, a file named "MyFile":

Jun 26 2003 11:32:56 VCS ERROR V-16-2001-14001 FileOnOff:MyFile:online:Resource could not be brought up

because,the attempt to create the file (filename) failed

with error (Is a Directory)

The first four fields of the message above consists of the timestamp, an uppercase mnemonic that represents the product (VCS, in this case), the severity, and the UMI (unique message ID). The subsequent lines contain the message text.

Timestamp

The timestamp indicates when the message was generated. It is formatted according to the locale.

Mnemonic

The mnemonic field is used to indicate the product.

The mnemonic, must use all capital letters. All VCS bundled agents, enterprise agents, and custom agents use the mnemonic: "VCS"

Severity

The severity of each message displays in the third field of the message (Critical, Error, Warning, Notice, or Information for normal messages; 1-21 for debug messages). All C++ logging macros and script-based logging functions provide a means to define the severity of messages, both normal and debugging.

UMI

The UMI (unique message identifier) includes an originator ID, a category ID, and a message ID.

Message text

The message text is a formatted message string preceded by a dynamically generated header consisting of three colon-separated fields. namely, <name of the agent>:<resource>:<name of the entry point>:<message>. For example:

FileOnOff:MyFile:online:Resource could not be brought up

because,the attempt to create the file (MyFile) failed

with error (Is a Directory)