Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / nsapi-includes / frame / log.h
blob6666b336c15fea0a66cb2460c3219b8486f26679
1 /*
2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
3 * rights reserved.
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
7 * parties.
8 */
11 /* ------------------------------------------------------------------------ */
15 * log.h: Records transactions, reports errors to administrators, etc.
17 * Rob McCool
21 #ifndef LOG_H
22 #define LOG_H
25 #include "netsite.h"
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
43 * will be reported.
46 int log_error(int degree, char *func, Session *sn, Request *rq,
47 char *fmt, ...);
49 #endif