Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ world.TellLog
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Sun 04 Feb 2007 08:17 PM (UTC) |
Message
| Right now there is the world.WriteLog function, but this appends a newline on the end of whatever you provide. Could we have a function which doesn't do that? Specifically, I'd like to prepend timestamps to my prompt line, but only in my log, not on screen. Thanks -Tsunami | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 04 Feb 2007 09:19 PM (UTC) |
Message
| Can't you just do this?
- Capture prompts in a trigger
- Omit from log (so it isn't logged automatically)
- Prepend the timestamp, add in the prompt, and then do a WriteLog of the resulting string.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Reply #2 on Mon 05 Feb 2007 12:45 AM (UTC) |
Message
| |
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Reply #3 on Mon 05 Feb 2007 12:58 AM (UTC) |
Message
| Actually, while I'll be using that idea, it is quite difficult to implement HTML logging with it. You have to change all the style information into the relevant HTML, neh? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 05 Feb 2007 06:03 AM (UTC) |
Message
| Well, you would, but you can use this to help you:
http://www.gammon.com.au/scripts/doc.php?function=FixupHTML
For each style run in the line you output the appropriate HTML to change colours (use the existing logging for a guide) and then use FixupHTML on the text part. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,583 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top