summaryrefslogtreecommitdiff
path: root/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h
blob: 1113ebe6867ad03fc249217ff63342703c9c4cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * $Id$
 *
 * Copyright (c) 1994, 1995.  Netscape Communications Corporation.  All
 * rights reserved.
 *
 * Use of this software is governed by the terms of the license agreement for
 * the Netscape Communications or Netscape Comemrce Server between the
 * parties.
 */


/* ------------------------------------------------------------------------ */


/*
 * log.h: Records transactions, reports errors to administrators, etc.
 *
 * Rob McCool
 */


#ifndef LOG_H
#define LOG_H


#include "netsite.h"
#include "base/session.h"   /* Session structure */
#include "frame/req.h"      /* Request struct */
#include "base/ereport.h"   /* Error reporting, degrees */


#define ERROR_CUTOFF 128


/* ------------------------------ Prototypes ------------------------------ */


/*
 * log_error logs an error of the given degree from the function func
 * and formats the arguments with the printf() style fmt. Returns whether the
 * log was successful. Records the current date.
 *
 * sn and rq are optional parameters. If given, information about the client
 * will be reported.
 */

int log_error(int degree, char *func, Session *sn, Request *rq,
              char *fmt, ...);

#endif