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
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Sat Apr 20, 2002 2:50 pm   

plug-in idea
 
not sure if this is allready done but it would be cool if someone wrote a plugin that would automagically log to a certain folder and like save it a different name for each day, like the date. So like whenever your connected its logging to a file named 4-19-02 on 4-19-02 etc...i allways log and dont like to take the time to make a bunch of ogs i just logon ctrl+l :P If this is allready out there please lemme know
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Apr 20, 2002 4:01 pm   
 
Why use a plugin when a simple alias will do the trick?

#AL atconnect {#LOG %time("m-d-y").txt}

LightBulb
Vague questions get vague answers
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Sat Apr 20, 2002 4:58 pm   
 
I like, I am wanting but how would i save the logs to like d:darklordlogs

I like the m-d-y but i'd like the time i started the log too... 4-20-02-10:50
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 20, 2002 5:00 pm   
 
Do a search of the forums, about 2 months ago someone asked for the same. I also put in a little extra stuff so the log would get closed at midnight and a new one started.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 21, 2002 1:44 am   
 
Start up zMUD and click on help. Open up the index and look for "time". Click on that, and it will tell you how to get hours and minutes.

Of course, I could look it up for you but it won't take you any longer to just to do it yourself.

LightBulb
Vague questions get vague answers
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Sun Apr 21, 2002 3:41 pm   
 
OKay i got the time added but since then i can't find where zmud is logging to. I have check the zmud folder and even searched my hard(s) for at log it was suppost to do yestersay but no go.

 AL atconnect {#LOG %time("m-d-y").txt} 

but still haven't figured out how to log it to a folder on my d drive
D:darklord_logs
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Sun Apr 21, 2002 3:44 pm   
 
quote:
AL atconnect {#LOG %time("m-d-y").txt}


make that


#AL atconnect {#LOG %time("m-d-y-t").txt}  
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 21, 2002 4:35 pm   
 
You'll find the logfile in the zMUD folder. If you want it in a different folder, on a different disk, you can copy it whereever you wish after you close the log. Just open My Computer or Explorer, find it in the zMUD folder, and drag it to where you want it.

zMUD is picky about what directories it uses for things, I don't recommend trying to force it to make the log somewhere else to start with.

LightBulb
Vague questions get vague answers
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 21, 2002 7:40 pm   
 
Be mindful of where you put the atconnect when you override it. I kept mine in the System folder where the inherited version was and of course mine never executed. You'll never get around the fact that inherited settings are always loaded first, so you need to keep it in a folder located above the System folder.

li'l shmoe of Dragon's Gate MUD
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Apr 24, 2002 8:11 am   
 
I jammed this into the trigger for Password in the Autolog folder:

#LOG %concat( "e:bankerbanker_", %replace( %replace( %replace( %time( ), ",", "_"), " ", "_"), ":", "_"))

Then in another always active folder I have:
#ALARM {-:59:00} {#LOG %concat( "e:bankerbanker_", %replace( %replace( %replace( %time( ), ",", "_"), " ", "_"), ":", "_"))}

Used for a critical bot where I need to be
able to recover data if something crashes and I use the log files as a 3rd line of defense.


Ton Diening
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Thu May 30, 2002 10:00 pm   
 
sorry this is a little late but i've been busy... okay Windows will not allow you to save any files with : in the file name so none of those work
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 30, 2002 10:16 pm   
 
Use the format I suggested a month ago, date only. If you really need a time-stamp put it in the log itself instead of in the log's filename.
#AL atconnect {#LOG %time("m-d-y").txt}


LightBulb
Vague questions get vague answers
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Thu May 30, 2002 10:23 pm   
 
reason i don't just use the date stamp... because... say i get on and play for a while then decided to get off for while then play again later that day when it logs it will over write the other log for that day and i'm going to waste time renameing a log evertime i play
Reply with quote
raks
Beginner


Joined: 30 Jan 2002
Posts: 24
Location: USA

PostPosted: Thu May 30, 2002 10:36 pm   
 
quote:
i'm going to waste time renameing a log evertime i play


i mean NOT going to waste time renaming a log file ever time i play
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu May 30, 2002 10:54 pm   
 
I believe the LOG command will take 2 arguments. #LOG {filenme goes here.txt} {new}. Now looking at the help...oh wow if you don't put the "new" arguement then the new portion of the log is appended. So you don't have to worry about losing one log when you reconnect.

Next time please just read the help, it is included with zMud's installation for a reason.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu May 30, 2002 11:56 pm   
 
quote:

#LOG %concat( "e:bankerbanker_", %replace(%replace( %replace( %time( ), ",", "_"), " ", "_"), ":", "_"))



more than enough crap to differentiate every time you play.

TonDiening
Beta Upgrading to 6.26
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 31, 2002 8:14 am   
 
As Vijilante points out, you won't overwrite the existing log unless YOU decide to add the "new" parameter to the #LOG command.

You also won't get any : in your filename unless YOU put them there with your arguments to the %time() function.
%time(m-d-y_h/nn/ssam/pm)

LightBulb
Vague questions get vague answers
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