On Wed, 29 May 2002, Michael Gerner Andreasen wrote:
> To make things alittle more clear, the idea was to have, logs by date made
> by the mud,
> rather than the normal 1xxx made by the startup script, log files named like
> DD-MM-YYYY.log
> and inside looks like, HH:MM:SS - bla bla bla.
> it works fine like this, but my log functions if the one creating the file,
> so if the log functions hasn't been used for more than a day,
> then that day the file will be missing instead of being just empty, so what
> I need is a way to check for a new day, and I have only
> little idea about how to do that, I will include my current log.c for you
> reading, hope you can and will help alittle.
Hurp.
Why, oh WHY do you want to unneccesarily write stuff, when it's not
NEEDED. Even if you create your daily file - and don't write anything to
it, you'll have a COMPLETELY EMPTY file cluttering your directory.
Sheesh.
I'd hate for y'all to figure out resource management. ( Waste as little
(resources) as possible... )
- d.
--
Dominic J. Eidson
"Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/ http://www.the-infinite.org/~dominic/