NAME

catlog_event - log an event

SYNOPSIS

#include <cat/cat.h>

#include <cat/log.h>

int catlog_event(cat_session *sess, const char *label, const char **params);

DESCRIPTION

This function logs an event in the context of a session or in the global context if the sess argument is NULL. The format of the label argument should be "facility.label", as installed with catlog_mklabel(). If the "facility" part is omitted, the default facility is used. Additional parameters specified as a NULL-terminated array of strings will become the positional parameters of the log message.

The function returns CAT_OK if successful, or a negative code otherwise.

SEE ALSO

cat, catlog

catlog_mklabel, catlog_vevent