#include <cat/gen.h>
int catgen_initlog(const char *service);
All catgen functions that perform logging will use the labels defined by catgen_initlog
If the value ``log.facilityfile
'' is supplied in the configuration data, either globally or for service, the log definitions will be read from this file. Otherwise, the standard
built-in catgen log definitions will be used.
If no facility file is defined and standard labels are loaded, the facility
label and code can be changed using the parameters ``log.facilitycode
'' and ``log.facilitylabel
''. Thus, it is possible to use a different facility with a superset of the
standard messages by first calling catgen_loginit and then adding any new messages.
Message identifiers 10000-60000 are free for use by applications. All other message identifiers are reserved for future use by the SDK.
If successful and the standard log definitions are used, the function returns 0.
In both cases, the function returns a negative code on error.
catgen_certerrtologid, catgen_initels, catgen_initlogfile, catgen_loadloglabels, catgen_log