|
Tagon Beginner
Joined: 12 May 2004 Posts: 10
|
Posted: Fri Jun 25, 2004 3:34 am
Logging |
Is there a command to start a log when you first login. I know the command #LO but is there a way to turn it on right at connection?
The mud has no special text when you first login.
Also how would you make it so the file name you log to changes each time you login?
Thanks |
|
|
|
Mike Z Red Beginner
Joined: 11 Jun 2004 Posts: 11 Location: USA
|
Posted: Fri Jun 25, 2004 4:44 am |
For the first part, you can use the alias #AL atconnect {#LO}, which fires as soon as you connect. (Thanks to whoever it was showed that to me a week or so ago.)
As far as the file name, you could do a couple things. You could use a #PROMPT (or %prompt) to ask you for the filename:
#AL atconnect {#LO %prompt("","Enter today's logfile:")}
This will turn logging on and send all text to the filename you enter.
An alternate way (and probably what I would use)
#AL atconnect {#LO %concat(%time(mmddyy),".log") }
Which would name the file something like 062404.log (for today's date)
If you connect more than once in the same day, it'll append each session into the same log, until the date changes.
If you want it different EVERY time you login, you could do
#AL atconnect {#LO %concat(%time(mmddyy-hhnn),".log") }
which would do something like 062404-2316.log (if I logged in right now), at 23:16 on 6/24/04.
I'm not in front of zMud right now, but that should be pretty close, if not on the money.
Happy mudding. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jun 25, 2004 4:46 am |
Add this command to the end of your password trigger or your atconnect alias.
#LOG {%time( dd-mm-yy)}
This won't change filenames at every login but it will change it daily. |
|
|
|
Tagon Beginner
Joined: 12 May 2004 Posts: 10
|
Posted: Fri Jun 25, 2004 5:03 am |
Thank you very much
|
|
|
|
|
|