Logging Problems

Posted by RM7 on Thu 05 Jun 2003 05:19 PM — 6 posts, 23,823 views.

#0
I'm having logging problems... sadly this has come up before too, and I'm not sure of the cause. What I'm trying to do is have a log opened each time I connect to my mud with the filename format of:

mudname-%#c.txt

I have created a c:\mud-name\logs folder and have set the following options under logging:

log output: on

automatically log to this file:
c:\mud-name\logs\mud-name-%#c.txt

write world name to log file: on

No other options in the logging dialog are set. I have full access to the c:\mud-name\logs directory and it exists. I also tried using the default c:\program files\mushclient\logs directory with the same results.

When I connect I receive a dialog that states: Could not open log file "c:\mud-name\logs\mud-name-Thursday, June 05, 2003 10:18:16.txt"

And, no log file is created. Help?
#1
Looks like the problem is that some of the characters are invalid, like the colon in a time structure. I'm using Win2K, btw. Is there something I'm missing here, or are many of these options for log file names not supposed to work on Win2K?
USA #2
I have windowsXP and I have this for my logging
C:\Program Files\MUSHclient\logs\character-%b-%d-%a-%Y.html

I just manually typed the characters name in for each character, i'm sure there is a way to write a script to do this, I figure since I only have to do it once per character why bother.
#3
<nod> none of those use the colon for time, hence why it would work. I guess I'm trying to figure out if the time options like 15:47:02 (%X) were meant to work and if so, if it's possible I'm doing something wrong.
Australia Forum Administrator #4
The date formatting is done by an inbuilt routine (one I didn't write) that happens in some cases to produces dates that are not valid file names, sorry.

It wasn't done to annoy people, but it is easier to use a standard date routine, and explain how to use it, than to rewrite it all, omitting a couple of things.
#5
No problem Nick. I wasn't annoyed, just curious. Thanks.