2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
5 * Use of this software is governed by the terms of the license agreement for
6 * the Netscape Communications or Netscape Comemrce Server between the
11 /* ------------------------------------------------------------------------ */
15 * log.h: Records transactions, reports errors to administrators, etc.
26 #include "base/session.h" /* Session structure */
27 #include "frame/req.h" /* Request struct */
28 #include "base/ereport.h" /* Error reporting, degrees */
31 #define ERROR_CUTOFF 128
34 /* ------------------------------ Prototypes ------------------------------ */
38 * log_error logs an error of the given degree from the function func
39 * and formats the arguments with the printf() style fmt. Returns whether the
40 * log was successful. Records the current date.
42 * sn and rq are optional parameters. If given, information about the client
46 int log_error(int degree
, char *func
, Session
*sn
, Request
*rq
,