[MUD-Dev] Technical programming question (circular buffers & logging)

Greg Miller gmiller at classic-games.com
Thu Jul 15 16:12:46 CEST 1999


Ben Greear wrote:
> So, what I want to do is modify my logging class (basically just
> an ofstream with some flags tacked on it).  I was thinking about
> making it a sort of ring-buffer where it just kept the last 50k
> or some other nice round number.

[snip]

> I think I could write my own thing to do this, but I was wondering
> if anyone knew of any tricks with files, or ready-built libraries
> to do something like this...

As I recall you're using UNIX/Linux for your real server? If you could
reproduce the problem by yourself and have a WinNT box handy, you could
use the the NT event log, which would do the job for you quite nicely.
--
http://www.classic-games.com/
Conspiracy theorists mistakenly assume others think before acting.
*** Please limit .sigs to four lines and avoid HTML mail or posts. ***



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev




More information about the mud-dev-archive mailing list