GNOME Bugzilla – Bug 66387
please add g_log_set_default_handler or equivalent
Last modified: 2011-02-18 16:09:28 UTC
There's a function in eel called eel_make_warnings_and_criticals_stop_in_debugger. It would be way better if this function could work globally for all domains. But at the moment, it takes a list of domains, because it works via the g_log_set_handler mechanism. If there was a way to override the default handler, then I could do a better implementation. I think that there are also other legitimate reasons to want to change the default log handler for all domains.
I agree with this. The Eclipse people were needing it too.
This would also be a benefit to apps wanting to redirect everything on win32 and for language bindings that want to redirect messages to another logging mechanism.
Created attachment 31198 [details] [review] a patch Here is a possible patch.
Sun Sep 5 01:46:11 2004 Matthias Clasen <maclas@gmx.de> * glib/glib.def: * glib/gmessages.h: * glib/gmessages.c (g_log_set_default_handler): New function to install an alternate default log handler. (#66387, Darin Adler)