the panic log

Add an optional paniclog file, controlled by a new PANICLOG macro that can
be used to log all panic and impossible messages.  Helpful when people
forget to send, or didn't see, the message.
This commit is contained in:
cohrs
2002-06-02 18:49:18 +00:00
parent ba734ebfa1
commit 2e2ce4effa
6 changed files with 35 additions and 3 deletions

View File

@@ -131,9 +131,10 @@
/*
* Section 2: Some global parameters and filenames.
* Commenting out WIZARD, LOGFILE, or NEWS removes that feature
* from the game; otherwise set the appropriate wizard name.
* LOGFILE and NEWS refer to files in the playground.
* Commenting out WIZARD, LOGFILE, NEWS or PANICLOG removes that
* feature from the game; otherwise set the appropriate wizard
* name. LOGFILE, NEWS and PANICLOG refer to files in the
* playground.
*/
#ifndef WIZARD /* allow for compile-time or Makefile changes */
@@ -147,6 +148,7 @@
#define LOGFILE "logfile" /* larger file for debugging purposes */
#define NEWS "news" /* the file containing the latest hack news */
#define PANICLOG "paniclog" /* log of panic and impossible events */
/*
* If COMPRESS is defined, it should contain the full path name of your

View File

@@ -638,6 +638,7 @@ E void FDECL(check_recordfile, (const char *));
#if defined(WIZARD)
E void NDECL(read_wizkit);
#endif
E void FDECL(paniclog, (const char *, const char *));
/* ### fountain.c ### */