Pre-VCS 4.0 Message APIs
The message APIs described in this section of the document are maintained to allow VCS 4.0 and later to work with the agents developed on the 2.0 and 3.5 agent framework.
VCSAgLogConsoleMsg
void
VCSAgLogConsoleMsg(int tag, const char *message, int flags);
This primitive requests that the VCS agent framework write message to the agent log file, $VCS_LOG/log/resource_type_A.log. The message must not exceed 4096 bytes. A message greater that 4096 bytes is truncated.
tag can be any value from TAG_A to TAG_Z. Tags A–E are enabled by default. To enable other tags, use the halog command. 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"
...
VCSAgLogConsoleMsg(TAG_A, "Getting low on disk space",
LOG_TAG|LOG_TIMESTAMP);
...
|