freeride-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FR-devel] Catching Log messages


From: Laurent Julliard
Subject: Re: [FR-devel] Catching Log messages
Date: Thu, 13 Jun 2002 22:41:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Curt Hibbs wrote:
Laurent Julliard wrote:

I'm aming progress on the Databus Inspector (DBI) plugin. One of the
thing I want to show is the messages send to the log slot and I wonder
what's the best way to catch the log messages on the fly without
disturbing the logger plugin.

Right now the logger pluggin runs 'sucks' all the log messages before
the Databus Inspector can do anything with it. THis is a typical case
where a plugin (the DBI) would like to spy on the /log slot at the same
time the logger plugin does.

Is there a way to set up a "tee" mechanism where by both plugins could
tap the log queue. Or at least a way by which the DBI plugin could look
at the queued messages before they are consumed by the logger.



You could do chaining by saving the existing logger's proc pointer, setting
the slot to your own logger, and then after you process each posting you
could pass it on to the original logger.

Curt


Good idea! Thanks for the suggestion.

Laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]