NAME

catlog_get - get logging information

SYNOPSIS

#include <cat/cat.h>

#include <cat/log.h>

const char *catlog_get(cat_session *sess, int what);

DESCRIPTION

This function retrieves information for parameter what, as set by a previous call to catlog_set(), either globally or for a specific session. If the sess argument is NULL, global data is returned.

RETURN VALUES

The function returns a pointer to the internal data, which will become invalid at the next call to catlog_set() for the same parameter in the same scope.

The function returns NULL if there is no matching value.

SEE ALSO

cat, catlog

catlog_set