Log file rollover

Posted by Dave on Mon 01 Sep 2003 04:07 AM — 6 posts, 21,938 views.

Australia #0
Don't know if this has been suggested before, but it would be nice if MUSHclient automatically opened a new log file when the day turns over (assuming the date field for "day" is found in the log file in General|Logging). This CAN be done with a plugin and a timer, but I think it would be more appropriate to do this within MUSHclient itself. If you're logging to a daily file, you sort of expect it to log to "correct" filename, instead of whenever MUSHclient closes/reopens.

Dave
USA #1
Its perfectly appropriate to do it with a plugin and a timer, thats exactly what the plugin system was designed for... (it wont only do it when mushclient closes/opens, you can set it up to do it whenever the day changes)

There is someone who had questions about changing days and such with logs in the forums past... Do a search for the thread, there might be some examples.
Australia #2
Did you read what I posted? I know it can be done with a plugin, I was simply asking for it to be included in MUSHclient.
USA #3
I dont see why thats an issue, plugins were designed so that mushclient wouldnt get bloated by a bunch of people wanting something and insisting it goes in, and thereby forcing others to have it, even if they dont use it.

Thought you thought there was some problem with it being used as a plugin ("If you're logging to a daily file, you sort of expect it to log to "correct" filename, instead of whenever MUSHclient closes/reopens.")
Australia #4
I meant that I expect MUSHclient itself to log to the correct filename when the day rolls over, which is why I suggested it be put into MUSHclient itself instead of a plugin. I'm all for not having bloat, but I'd hardly call logging to the logical filename bloat.
Australia Forum Administrator #5
This subject was canvassed fairly recently. I see where you are coming from, but say you put the hour/minute/second in the log file name, do you expect a new log file every second? I don't think so. If not, however you could argue that the log file name "does not show the correct time".

The name is the date/time you opened it. It is up to you to close/re-open it (say in a plugin or a timer) at a frequency that suits you. Say, every hour.