More logging

Posted by Khamura on Sat 13 Oct 2001 11:14 AM — 4 posts, 17,402 views.

Germany #0
More logging related stuff, yay. ;)

See, I'm a notorious logger and thus always log via MUSHclients autolog option. Now, what happens is the following: with no apparent reason whatsoever, some of my logs miss the 'starting portion', ie, from login to some random point in mid-play or mid-chat. This is not bound to any file or log size, and appears not to be connected to the buffer size either, as I have that set to the maximum, 500K lines.

I'm using 3.17 and have the following things enabled/entered in the logging part:
Log Commands
HTML
Color
File Preamble (standard HTML file start code)
File Postamble (standard HTMl file end code)
Line Postamble (HTML linebreak)

I save my files to "C:\MUSHclient\CharacterName - %y-%m-%d-(%H-%M).html", so I have my logs in chronological order without having to enter anything manually.

Any solution to my problem? Is it once again so obvious that I'm plain overlooking it?
Amended on Sat 13 Oct 2001 11:15 AM by Khamura
Australia Forum Administrator #1
Can you clarify whether you turn on logging at the start (ie. automatically log) or whether you log later on with the "include previous lines" option.

Nowadays the log file is periodically closed and re-opened for appending, to make sure that the log isn't lost on a machine crash. Maybe somehow it forgets to append, although why that would happen is a mystery, as it is the same code each time, and I gather it only happens sometimes.
Germany #2
I start logging automatically as soon as the world is open.

I have checked: For some reason this only happens to HTML files, not TXT ones. Then again, I have a HTML of about 270 KB that is perfectly okay, and another one of 260 KB that is cut off, so there's no pattern to it either. It's very weird. Thankfully these are all OOC chat logs, because I'd hate losing RP logs in this manner.
Australia Forum Administrator #3
I've looked at the source code and can't see what might be wrong. I don't suppose you use any scripts that might close the log file?

There is no reference to the HTML flag when it comes to closing and re-opening the log file.