Am 22.06.2006 um 22:10 schrieb Zoran Vasiljevic:

But as Gustaf already suggested, one can wrap the ns_log
in Tcl and do whatever one will from the Tcl level anyway.
I will have to see if this will be sufficient.

It's not :-(

The problem is: we also have whole lotta C-modules
calling Ns_Log() C-API hence pure wrapping of the
Tcl ns_log call will just partly help.

I have been looking at the current code and indeed
there are hooks in the log machinery to overload the
log and log-flush calls. But it is either/or stuff.
So you either use your own version OR you use the built-in
version. What I would like to do is to expand this to
push/pop any number of calls and execute them in LIFO
fashion. The ns_logctl can be used to push the log and
flush functions implemented as Tcl callbacks and there
should be equivalent C-API for that as well.

I will examine this in detail today and see if I can
have a working version to check out. This is of very
high importance to us hence you may count on seeing
some results pretty soon...

Cheers
Zoran


Reply via email to