Re: [PATCH] System File Logging <Pine.LNX.3.96.971020234933.15803B-100000@dragon.ham.muohio.edu>

From: Jeremy Elson (jelson@CIRCLEMUD.ORG)
Date: 10/20/97


George writes:
>* File Log Stock Patch - Log to file (15,201 bytes) [October 20, 1997]
>  1. Allows redirection of system logs to a file via config.c.
>  2. Defaults to stderr for the same behavior as current CircleMUD.
>  3. Useful for Windows 95 users who cannot redirect stderr.

Just FYI, it looks like this patch will only redirect messages that
are written with fprintf() to stderr, which includes calls to log(),
but has the very unfortunately property of not preserving any errors
logged by perror().  pl12 uses a simpler scheme of
alternate-file-logging that just replaces the stderr file descriptor
with a descriptor pointing to the user's file.  I haven't yet tried
compiling it under Windows (where it counts) so I'm not sure if it'll
port; iff not we'll probably be forced to use a private perror
function that mimics perror except for writing to our own file.

-Jeremy


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST