[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  Log interception..

Log interception..

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

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Fri 30 Mar 2007 09:23 PM (UTC)
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.
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 30 Mar 2007 09:50 PM (UTC)
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
[Go to top] top

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] 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

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.
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]