That *LOGNAME = "log/syslog" thing only exists on bpl13+...some of us still use bpl12. On Sun, 6 Sep 1998, Douglas Mallory wrote: > At 12:10 AM 9/6/98 , Aaron Throckmorton wrote: > >Output of STDOUT has to be redirected to log.txt in your batch file ( > >circle.exe >> log.txt). > > >- fprintf(logfile, "%-15.15s :: ", time_s + 4); > >+ fprintf(stderr, "%-15.15s :: ", time_s + 4); > >+ printf("%-15.15s :: ", time_s + 4); > > But you're forgetting > const char *LOGNAME = "log/syslog"; /* -- useful for Windows users */ > from config.c > > If this is null, it goes to stderr automatically. You're changing > functionality unnecessarily here, I think. Use the config variable to map > to the log, and then write to stderr for console display... No extra > command line variables needed that way. (You could even do a check for > LOGNAME not being NULL to avoid duplicate writes as dummy-proofing.) > > fprintf(logfile, "%-15.15s :: ", time_s + 4); > + fprintf(stderr, "%-15.15s :: ", time_s + 4); > > - > Is that all you monks ever think about? > Sects, sects, sects. > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ > ----------------------------------------------------------------- Julian Buckley, 2nd Year Computer Systems Engineering Dept. Computer Science and Electrical Engineering, Univ. of Qld E-Mail: buckley@pc.elec.uq.edu.au ----------------------------------------------------------------- +------------------------------------------------------------+ | 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/15/00 PST