Register forum user name Search FAQ

Gammon Forum

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.
 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Log interception..

Log interception..

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Shadowfyr   USA  (1,788 posts)  Bio
Date Fri 30 Mar 2007 09:23 PM (UTC)
Message
Before writing a log entry, it might be nice to intercept it, so you can do more with it than the pre-append allows. What, I am not sure, its not like what it does already is flawed. However, someone on the TMS board brought up the idea of using the time stamps on log entries to "replay" the session in something. Fine, as far as that goes, but what if its an application like powerpoint or some other system where just reading the time stamp won't work, but structuring the log as data to be read "by" the system and displayed correctly would?

Its not something I have a current use for, just in idea and unlike most everything else, there are no intercept callbacks for logging.
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 30 Mar 2007 09:50 PM (UTC)
Message
If you want to do fancier logging, is there a problem with simply making a trigger matching everything, give it a low sequence number, and set to "keep evaluating"? That could then log everything, in any way it wants to.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Shadowfyr   USA  (1,788 posts)  Bio
Date Reply #2 on Sat 31 Mar 2007 12:10 AM (UTC)

Amended on Sat 31 Mar 2007 12:11 AM (UTC) by Shadowfyr

Message
Well, what about notes? Notes get logged too, I think.., and they *do not* go through either aliases or triggers before being stored. To correctly replay a custom log for such things, scripted to function with some application that needs more than a time appended, you would have to find every single "note" function, in every plugin/script you hve installed, including other people's, then manually add code to also generate a modified log entry for them. This is just bloody rediculous, especially if the point is to "accurately" show what happened in the client during replay, or when re-parsing the text, or what ever it is you are actually doing with it, which requires having those notes logged correctly as well. You can't do that with text that isn't generate through user commands or server text with any method we have available right now, not without a lot of recoding of things that we might have personally created.

And, one can also imagine applications that use the table interface for Mushclient and call the "note" function directly, which you wouldn't be able to recode so easilly. Like if you have a database for something, and it used "note" or "colornote" to display errors directly to the world. That note would be produced by the external application, which may have been written by someone completely different, and where you don't have access to the source to add in code to write the modifies log entry.

We are dealing with three text streams, while your suggestion only deals with two of them. I think I need to revise this from, "This might be an interesting idea.", to, "We might need this in some cases, so please add it." I really hadn't even thought about the issue of what happens with note and colornote, especially from applications using the .tbl bindings to call the functions for those.
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.


13,715 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.