i have generated a new version of mudlog. not much as changed but i was getting tired of not knowing what was going in the mud till it was closed so i made it output to stdout and the file: void basic_mud_log(const char *format, ...) { va_list args; time_t ct = time(0); char *time_s = asctime(localtime(&ct)); time_s[strlen(time_s) - 1] = '\0'; fprintf(logfile, "%-15.15s :: ", time_s + 4); fprintf(stdout, "%-15.15s :: ", time_s + 4); va_start(args, format); vfprintf(logfile, format, args); vfprintf(stdout, format, args); va_end(args); fprintf(logfile, "\n"); fprintf(stdout, "\n"); fflush(logfile); fflush(stdout); } --------------- Daniel Staudt <dstaudt@hotmail.com> <http://www.geocities.com/ResearchTriangle/5404/> or <http://www.fortunecity.com/skyscraper/siliconvalley/469> ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com +------------------------------------------------------------+ | 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