The log category for the agent is defined using the primitive VCSAgSetLogCategory
(cat_ID)
within the VCSAgStartup
entry point.
In the following example, the log category is set to 10051:
VCSEXPORT void VCSDECL VCSAgStartup()
VCSAG_LOG_INIT("VCSAgStartup");
VCSAgInitEntryPointStruct(V50);
VCSAgValidateAndSetEntryPoint(VCSAgEPMonitor, res_monitor);
VCSAgValidateAndSetEntryPoint(VCSAgEPOnline, res_online);
VCSAgValidateAndSetEntryPoint(VCSAgEPOffline, res_offline);
VCSAgValidateAndSetEntryPoint(VCSAgEPClean, res_clean);
char *s = setlocale(LC_ALL, NULL);
VCSAG_LOGDBG_MSG(VCS_DBG1, VCS_DEFAULT_FLAGS, "Locale is
You do not need to set the log category for debug messages, which is 50 by default.