HP-UX SNAplus2 CSV Programmer's Guide
Common Service Verbs Reference
LOG_MESSAGE (HP-UX Systems Only)
Chapter 272
• The fields Message, Type, Cause Type, Flags, and String must be
specified. The fields Cause and Action are optional; to indicate that
one of these fields is not used, specify the following string, with
capitalization as shown:
@!* Not Used
For example, if the message is an audit message and no action is
required, use the following line:
Action: @!* Not Used
In this case, SNAplus2 will not include the Action field when writing
the message to the log file.
• The total length of the Cause and Action fields must not exceed 2048
characters.
Sample Log Message Output
The previous section shows a sample entry in the message source file. If
you build a message file from a source file containing this entry, an
application can call LOG_MESSAGE specifying message number 1 in
this message file. The application's supplied data must contain two
null-terminated strings, one specifying the file name (for example,
/usr/jim/myfile) and one specifying the reason for the failure (for
example, “File not found”). The output will then be as follows:
12:17:28 BST 05/13/1994
MYAPPL Message 32767-1, Subcode: 0
Log category: PROBLEM Cause Type: CSV
System: jimsbox
Process ID: 12345
Could not open the file.
Filename = /usr/jim/myfile
Reason = File not found
Cause: The specified file could not be opened.
Action: Check the reason shown on this message for more information.
This sample output assumes that full logging (not succinct logging) is
being used. For more information about succinct logging, and the format
of entries in the log file if it is being used, refer to the chapter on log
messages in the HP-UX SNAplus2 Administration Guide.