NAME

catlog_setdispatcher - install log dispatcher for a session

SYNOPSIS

#include <cat/cat.h>

#include <cat/log.h>

int catlog_setdispatcher(cat_session *sess, catlog_dispatcher *dp);

DESCRIPTION

This function installs log dispatcher dp for session sess.

If sess is NULL, the dispatcher will become the global default dispatcher.

If the dp argument is NULL, the corresponding dispatcher is removed.

RETURN VALUES

The function returns 0 if successful, or a negative code on error.

SEE ALSO

cat, catlog