Clogit man page

CLOGIT(3) Common Library Functions CLOGIT(3)

[1mNAME[0m
Clogit - log server messages in local log or in system logger

[1mSYNOPSIS[0m
[1m#include "Clog.h"[0m

[1mint Cinitlog (char *[4m[22mcmd[24m[1m, char *[4m[22mlogfile[24m[1m)[0m

[1mint Clogit (int [4m[22mlevel[24m[1m, char *[4m[22mfunc[24m[1m, char *[4m[22mmsg[24m[1m, ...)[0m

[1mint Cvlogit (int [4m[22mlevel[24m[1m, char *[4m[22mfunc[24m[1m, char *[4m[22mmsg[24m[1m, va_list [4m[22map[24m[1m)[0m

[1mDESCRIPTION[0m
[1mCinitlog [22minitializes the server logging routines.

[1mClogit [22mlogs server messages in a local log or in the system logger.

[1mCvlogit [22mis the same as [1mClogit [22mbut takes a va_list instead of a variable
number of arguments.

[4mcmd[24m specifies a string to be prepended to the syslog messages.

[4mlogfile[0m
specifies a path for the server log file. If set to [1msyslog[22m, the
system logger will be used. By default, only messages with
level at least as important as LOG_INFO will be logged. The
level threshold can be changed with the environment variable
LOG_PRIORITY.

[4mlevel[24m is associated with the message. The possible values, in order
of decreasing importance are:

[1mLOG_EMERG[0m

[1mLOG_ALERT[0m

[1mLOG_CRIT[0m

[1mLOG_ERR[0m

[1mLOG_WARNING[0m

[1mLOG_NOTICE[0m

[1mLOG_INFO[0m

[1mLOG_DEBUG[0m

[4mfunc[24m is the name of the function that issues the message.

[4mmsg[24m is a format as in printf.

[1mRETURN VALUE[0m
These routines return 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
[1mEFAULT [4m[22mlogfile[24m is a NULL pointer.

[1mENAMETOOLONG [22mThe length of [4mlogfile[24m exceeds [1mCA_MAXPATHLEN[22m.

LCG $Date: 2011-06-20 09:00:04 +0200 (Mon, 20 Jun 2011) $ CLOGIT(3)

Referenced By

Cinitlog(3) and Cvlogit(3) are aliases of Clogit(3).