#include <cat/cat.h>
#include <cat/log.h>
int catlog_setdispatcher(cat_session *sess, catlog_dispatcher *dp);
If sess is NULL, the dispatcher will become the global default dispatcher.
If the dp argument is NULL, the corresponding dispatcher is removed.