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


Joined: 06 Jul 2002
Posts: 7

PostPosted: Tue Dec 10, 2002 9:06 pm   

Logging info and Folders
 
I've been wanting to set up a way to autolog my gaming sessions with dates and such (not a hard thing to do at all), but the thing i'm having a problem with is the fact that I play more then one character during a day sometimes, and they all log to the same file. What I would LIKE to be able to do, is to save each characters logs into a dif dirrectory. Is this possible to do, and if so does anyone have any suggestions on what i should try?

Example: I log on with Bob, the warrior and the auto log kicks in "Appending to log: December 10, Tue 2002.txt" After an hour or so, i get bored and log off, then log back in later that day as Tim the Wizard "Appending to log: December 10, Tue 2002.txt". The problem is that both are appending to the same log file, which works, I suppose, but I would rather them be saved into their own folders. Ie: I log on with bob and it saves to a folder called Bob, I log on with Tim and it logs to a folder called Tim.

In short, is there a way to set a log file to be saved to another folder OTHER then the default zmud root folder?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Dec 10, 2002 9:30 pm   
 
Why don't you include the name of the character into the filename too using the %char pre-defined variable?

Kjata
Reply with quote
Shez
Newbie


Joined: 06 Jul 2002
Posts: 7

PostPosted: Wed Dec 11, 2002 1:20 am   
 
that would work as well, but it still ends up with the root folder being clogged up with a ton of logs after a while. Part of the reason i wanted to have them re-directed into folders was to keep things nice and orginized for when i need quick ref on something i might be looking for.

If no one has any suggestions, or there isnt a way to do it, then i'll end up using %char, but hopefully... :)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Dec 11, 2002 2:12 am   
 
Oh, that's no problem too. Just specify the path when using the #LOG command.

Kjata
Reply with quote
Shez
Newbie


Joined: 06 Jul 2002
Posts: 7

PostPosted: Sun Dec 15, 2002 1:34 am   
 
How is that done? I've never tried it befor, could you give me an example?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Dec 15, 2002 2:24 am   
 
#LOG C:zMUDmyFolderlog.txt

Kjata
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Dec 15, 2002 2:28 am   
 
#LOG {%concat(%char,"",%time("mm-dd-yy"),".txt")}

That should do it for you. Obviously you can change the format of %time if you want.
Reply with quote
Shez
Newbie


Joined: 06 Jul 2002
Posts: 7

PostPosted: Wed Dec 18, 2002 3:52 pm   
 
Thanks Kjata/Vijilante.

With a combination of your two posts, plus slight tinkering, i was able to get exactly what i was looking for, which is the following in case anyone is wondering...

#LOG C:Games"Zmud Logs"%concat( %char, "-", %time( "mm-dd-yy"), ".txt")
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