[MUD-Dev] Technical programming question (circular buffers & logging)
gmiller at classic-games.com
Thu Jul 15 16:12:46 New Zealand Standard Time 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.
> 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.
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
More information about the MUD-Dev