NAME

catlog_set - set log parameter value

SYNOPSIS

#include <cat/cat.h>

#include <cat/log.h>

int catlog_set(cat_session *sess, int what, const char *value);

DESCRIPTION

This function sets a log parameter what to value for a session, or globally if the sess argument is NULL.

The parameters that can be set are as follows:

CATLOG_USERNAME
User name. Substituted for ``&U''.

CATLOG_LOGINNAME
Login name. Substituted for ``&L''.

CATLOG_HOSTNAME
Server host name. Substituted for ``&H''.

CATLOG_CLIENTNAME
Client host name. Substituted for ``&C''.

CATLOG_TOKENSN
Token serial number. Substituted for ``&T''.

CATLOG_GROUPNAME
Group name. Substituted for ``&G''.

CATLOG_SITENAME
Site name. Substituted for ``&S''.

CATLOG_REALMNAME
Realm name. Substituted for ``&R''.

CATLOG_VENDORNAME
Vendor name. Substituted for ``&V''.

CATLOG_SERVICE
Service name.

CATLOG_FACILITY
Default facility name.

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

SEE ALSO

cat, catlog