|
Zeno Beginner
Joined: 20 Jun 2002 Posts: 15 Location: USA
|
Posted: Wed Jul 17, 2002 7:11 am
Hrm... |
Is there a way to have Zmud keep auto logs for each day? Like one day, the file would be 7-17zeno.txt
True beauty lies within the darkness... |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Wed Jul 17, 2002 11:11 am |
Try
#alias {atconnect} {#log %time(m-dd)zeno.txt}
- Charbal |
|
|
|
Zeno Beginner
Joined: 20 Jun 2002 Posts: 15 Location: USA
|
Posted: Wed Jul 17, 2002 7:07 pm |
Where would it be placed?
True beauty lies within the darkness... |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jul 17, 2002 8:09 pm |
The log or what Charbal posted?
The log will appear in zMUD's directory. What Charbal posted would be entered into the command line.
Kjata |
|
|
|
Zeno Beginner
Joined: 20 Jun 2002 Posts: 15 Location: USA
|
Posted: Wed Jul 17, 2002 8:19 pm |
Ok... how do I have it make a different log for each character? Like it should be something like #alias {atconnect} {#log %time(m-dd)(char).txt}
And how do I have it get rid of the time? It logs the time... Any way to get it to log colors too?
True beauty lies within the darkness... |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jul 17, 2002 8:35 pm |
Use a different name for each character. Instead of %time(m-dd)zeno.txt use %time(m-dd)zen2.txt or other name of your choice.
Color can be included by enabling Log ANSI Color in Preferences.
You could probably write a trigger to gag the time although I'm not sure why you'd want to. It shouldn't take up more than one line and it's often useful to know what time a session started.
LightBulb
Senior Member |
|
|
|
Zeno Beginner
Joined: 20 Jun 2002 Posts: 15 Location: USA
|
Posted: Wed Jul 17, 2002 8:39 pm |
Thats not it, every line has the seconds I've been playing...or something like this
[1mMessage of the day:[1;37m [0m
True beauty lies within the darkness... |
|
|
|
EdwinDroom Wanderer
Joined: 25 Jan 2002 Posts: 77 Location: Ireland
|
Posted: Wed Jul 17, 2002 11:48 pm |
logfile="c:My Documents"
logfile = %concat( @logfile, "Logs")
logfile = %concat( @logfile, %char)
logfile = %concat( @logfile, "")
logfile = %concat( @logfile, %char)
logfile = %concat( @logfile, %time( mm))
logfile = %concat( @logfile, %time( dd))
logfile = %concat( @logfile, ".txt")
#lo @logfile
Given a character called Edwin, on April 10th, this will create a file called Edwin0410.txt in a folder called Edwin in Logs in My Documents on C.
You will need to create these folders (Logs, and Edwin inside it) manually before you run it, or the files won't be created, other than that you can sort by character and date just using the filename...
Alternatively, remove some lines to put it straight in my documents, or whatever.
I've deliberately left the above code as just that - code. It can be put in as an alias, as a trigger on your login prompt or whatever.
All the best freaks are here, please stop staring at me |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jul 18, 2002 1:05 am |
quote:
Thats not it, every line has the seconds I've been playing...or something like this
[1mMessage of the day:[1;37m [0m
Those are the ANSI control codes. They are what tell zMUD how to color each line. If you want to save color to your logs, this is how you will see them when you open them in a text editor. If, however, you open it in zMUD's Editor (Windows|Editor), you will see full color.
Kjata |
|
|
|
|
|