NAME

catgen_loadloglabels - create the catgen log labels

SYNOPSIS

#include <cat/gen.h>

int catgen_loadloglabels(const char *facility, unsigned facility_code);

DESCRIPTION

This function registers the catgen log messages in the logging system with an arbitrary facility and facility code.

facility_code is the numeric identifier of this ``log family'' and the facility is the acronym. (See catlog and elsfile for more details.)

This function is useful if an Agent developer want to use his/her own ELS facility but still opts to use the predefined catgen log messages.

If it is sufficient to use the catgen facility code, catgen_initlog() should probably be used instead.

RETURN VALUES

This function returns CAT_OK if successful, or a negative code on error.

SEE ALSO

cat, catgen, catlog, catlog_mklabel, catlog_loadspecfile

catgen_certerrtologid, catgen_initels, catgen_initlog, catgen_initlogfile, catgen_log