Re: capturing logoutput from *all* domains



On Fri, 2004-10-29 at 05:29, Stefan Kost wrote:
> please fogive me if I am too blind to see it, but how can I capture all
> logoutput that goes over glib-log functions.
> I currently use g_log_set_handler for the domains I know the name (e.g. GLib,
> GLib-GObject,..). I've also set a printerr_handler.
> 
> I need this to
> a.) post-process message in unit-tests (see thread about g_assert-handler)
> b.) avoid output in (n)curses based application

glib HEAD has g_log_set_default_handler() which catches all domains.

MAtthias




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