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: Curt Hibbs
Subject: RE: [FR-devel] Catching Log messages
Date: Thu, 13 Jun 2002 10:15:42 -0700

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




reply via email to

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