After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 66387 - please add g_log_set_default_handler or equivalent
please add g_log_set_default_handler or equivalent
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2001-12-06 19:53 UTC by Darin Adler
Modified: 2011-02-18 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a patch (1.20 KB, patch)
2004-09-02 03:00 UTC, Matthias Clasen
none Details | Review

Description Darin Adler 2001-12-06 19:53:09 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.
Comment 1 Havoc Pennington 2001-12-06 21:10:58 UTC
I agree with this. The Eclipse people were needing it too.
Comment 2 John Ehresman 2004-07-05 17:36:37 UTC
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.
Comment 3 Matthias Clasen 2004-09-02 03:00:16 UTC
Created attachment 31198 [details] [review]
a patch

Here is a possible patch.
Comment 4 Matthias Clasen 2004-09-05 05:46:46 UTC
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)