|
kyishi Novice
Joined: 08 Oct 2003 Posts: 31 Location: United Kingdom
|
Posted: Sun Apr 04, 2004 10:42 am
Logging/Saving Log |
I know how to log files and use the #lo command but i have been wondering if there was a way to specify where it logs it to like the folder then the file name?
|
|
|
|
Cbisazza Wanderer
Joined: 27 Feb 2003 Posts: 69 Location: Australia
|
Posted: Sun Apr 04, 2004 1:10 pm |
Sure ...
#log C:zmud.log
for example.
Looking in the zMUD help is great for finding the right command syntax. |
|
|
|
kyishi Novice
Joined: 08 Oct 2003 Posts: 31 Location: United Kingdom
|
Posted: Tue Jun 22, 2004 11:01 am |
Oke need some other help with logging and stuff like that.
What i want to do is make it start a normal log and html log when i log into achaea. I want the command to save the log as %time so its saved as the time, and want to specify where the file is saved to without going to file new log. Where i wan't to save it is in a sub folder so like my documents/logs and i am not sure how to go about doing it.
Then after i log of i want it to close both the logs.
I could not find any help in the help files, and nothing usefull on these forums.
Please help. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jun 22, 2004 4:47 pm |
%time isn't a good choice for a filename.
Tuesday June 22, 2004 10:05:20 am
It's long and contains spaces, commas, and colons, which all should be avoided in filenames. %time(mm-dd-yy) is more likely to be useful, this will give you a new logname every day. If you have more than one session on the same day, the second session will simply be appended to the first one. If you need (or want) the time that a session starts, just do a timestamp immediately after opening the log.
#AL atconnect {#LOG {documentslogs%time(mm-dd-yy)};#SAY Timestamp: %time}
Logs are closed automatically when you logoff. |
|
|
|
kyishi Novice
Joined: 08 Oct 2003 Posts: 31 Location: United Kingdom
|
Posted: Fri Jun 25, 2004 12:42 pm |
Thanks, that will work alot better.
|
|
|
|
|
|