Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ Logging Problems
Posting of new messages is disabled at present.
Refresh page
Posted by
| RM7
(9 posts) Bio
|
Date
| Thu 05 Jun 2003 05:19 PM (UTC) |
Message
| 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?
| Top |
|
Posted by
| RM7
(9 posts) Bio
|
Date
| Reply #1 on Thu 05 Jun 2003 05:27 PM (UTC) |
Message
| 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?
| Top |
|
Posted by
| Norbert
USA (61 posts) Bio
|
Date
| Reply #2 on Thu 05 Jun 2003 11:40 PM (UTC) |
Message
| 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. |
Norbert
-Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens
It's a dumb question... skip it.
| Top |
|
Posted by
| RM7
(9 posts) Bio
|
Date
| Reply #3 on Sun 08 Jun 2003 03:26 AM (UTC) |
Message
| <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.
| Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sun 08 Jun 2003 05:27 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| RM7
(9 posts) Bio
|
Date
| Reply #5 on Wed 11 Jun 2003 03:56 PM (UTC) |
Message
| No problem Nick. I wasn't annoyed, just curious. Thanks. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,824 views.
Posting of new messages is disabled at present.
Refresh page
top