On Tue, 21 Oct 1997, Jeremy Elson wrote: >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(). [...] Although the most frequent perror() message I've seen is gethostbyname(), they may be helpful in some cases. > 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 That's another option though more complicated, I just made a 'logfile' pointer and then used that throughout. It defaults to stderr. >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. I have access to MSVC 4.0 and 5.0 to test it before release. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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