Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
kyishi
Novice


Joined: 08 Oct 2003
Posts: 31
Location: United Kingdom

PostPosted: 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?
Reply with quote
Cbisazza
Wanderer


Joined: 27 Feb 2003
Posts: 69
Location: Australia

PostPosted: 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.
Reply with quote
kyishi
Novice


Joined: 08 Oct 2003
Posts: 31
Location: United Kingdom

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
kyishi
Novice


Joined: 08 Oct 2003
Posts: 31
Location: United Kingdom

PostPosted: Fri Jun 25, 2004 12:42 pm   
 
Thanks, that will work alot better.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net