VCSAgLogI18NMsgEx

void

VCSAgLogI18NMsgEx(int tag, const char *msg,

int msg_id, const char *arg1_string, const char *arg2_string,

const char *arg3_string, const char *arg4_string,

const char *arg5_string, const char *arg6_string, int flags);

This primitive requests that the VCS agent framework write an internationalized message with a message ID and six string arguments to the agent log file

UNIX: $VCS_LOG/log/resource_type_A.log

The message must not exceed 4096 bytes. A message greater that 4096 bytes is truncated. The size of all argument strings combined must not exceed 4096 bytes. If the argument string total exceeds 4096 bytes, then each argument is allowed an equal portion of 4096 bytes and truncated if it exceeds the allowed portion.

tag can be any value from TAG_A to TAG_Z. Tags A through H are enabled by default. To enable other tags, modify the LogTags attribute of the corresponding resource type. flags can be zero or more of LOG_NONE, LOG_TIMESTAMP (prints date and time), LOG_NEWLINE (prints a new line), and LOG_TAG (prints tag). This primitive can be called from any entry point.

For example:

#include "VCSAgApi.h"

...

char buffer[256];

sprintf(buffer, "VCS:2015004:Oracle:%s:%s:During scan for

process %s ioctl failed with return code %s, errno = %s", res_name, ep_name, proc_name, ret_buf, err_buf);

VCSAgLogI18NConsoleMsgEx(TAG_A, buffer, 2015004, res_name, ep_name, proc_name, ret_buf, err_buf, NULL, flags);