
On Fri, Jun 13, 2008 at 09:20:43AM +0200, Mojmir Svoboda wrote:
but i never meant to not provide what you call runtime filtering. i perhaps said something badly. i thought you wanted add another filter at runtime.
Did anybody of you look at how Solaris TNF framework or DTrace framework are implemented? A lot can be accomplished by tricks at link stage, and DTrace with UDT provider offers even more (selective filtering and data aggregation at run-time) than I could ask of any logging library. And that at a negligible cost for disabled log points. [No, I'm not proposing to reimplement all of DTrace. But what you're describing already exists, so it might be worth looking into how these things are implemented. Or, if nothing else, write a logging back-end for DTrace and/or TNF.]