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 2001:
VCSEXPORT void VCSDECL VCSAgStartup()
VCSAG_LOG_INIT("VCSAgStartup");
VCSAgInitEntryPointStruct(V50);
VCSAgSetEntryPoint(VCSAgEPMonitor, res_monitor);
VCSAgSetEntryPoint(VCSAgEPOnline, res_online);
VCSAgSetEntryPoint(VCSAgEPOffline, res_offline);
VCSAgSetEntryPoint(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.