diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h')
-rw-r--r-- | ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h b/ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h new file mode 100644 index 00000000000..1113ebe6867 --- /dev/null +++ b/ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h @@ -0,0 +1,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 |