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
Chub
Newbie


Joined: 30 Nov 2000
Posts: 5

PostPosted: Fri Jan 18, 2002 12:29 am   

Date Logging
 
Hi,

Just curious how I would go about logging files by the date. I.e. 'atconnect' would check the date, and begin to log a file called "Log of September 1, 2002". If no such file existed, it would create one, and if it did, it would append. Not really too well-versed in Zmud, but any help would work. Thanks!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Jan 18, 2002 2:04 am   
 
Add this line to atconnect:
#LOG %concat("Log of ",%time("mmmmmmmmmm dd, yyyy"),".txt")
And to atdisconnect add this line:
#LOG

Optionally....
Sadly it would be far to much work for me to write...or maybe not, add this line to atconnect:
StartLog

Create the alias:
#AL StartLog {#LOG %concat("Log of ",%time("mmmmmmmmmm dd, yyyy"),".txt");#EXEC %expand(#ALARM LoggingTimer {+%eval(86400-(%secs/1000))} {StartLog})}

Add these 2 to atdisconnect:
#LOG
#UNTRIGGER LoggingTimer

Now it will also close the log aat midnight aand start a new one.
Reply with quote
Chub
Newbie


Joined: 30 Nov 2000
Posts: 5

PostPosted: Fri Jan 18, 2002 2:18 am   
 
Thanks Vijilante, it worked wonderfully. I appreciate the help. :)
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