Log_Error - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Parameters
char *name
Example
/* this block of code does the same thing as func_exec */
char *afunc = pblock_findval("afunction", pb);
FuncPtr afnptr = func_find(afunc);
if (afnptr)
See also
func_exec
L

log_error

The
severity, and a specified text.
Syntax
int log_error(int degree, char *func, Session *sn, Request *rq,
char *fmt, ...);
Returns
0 if the log entry was created or -1 if the log entry was not created.
Parameters
int degree
constants:
LOG_WARN
LOG_MISCONFIG
LOG_SECURITY
LOG_FAILURE
LOG_CATASTROPHE
LOG_INFORM
char *func
Session *sn
Request *rq
152
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
is the name of the function.
return (afnptr)(pb, sn, rq);
function creates an entry in an error log, recording the date, the
log_error
specifies the severity of the error. It must be one of the following
—warning
—a syntax error or permission violation
—an authentication failure or 403 error from a host
—an internal problem
—a non-recoverable server error
—an informational message
is the name of the function where the error has occurred.
is the Session.
is the Request.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents