On 13/04/2012 02:58, Johannes H. Jensen wrote:
> Can you please try the attached program on your 12.04 system?
Based on Glib 2.32's documentation, g_log_default_handler() that only debug
messages for which G_MESSAGES_DEBUG[1] contains G_LOG_DOMAIN[2] are printed out.
In other words, something like this works:
---8<---
#define G_LOG_DOMAIN "foo"
#include <glib.h>
int main ()
{
g_debug ("foo");
return 0;
};
--->8---
On 13/04/2012 02:58, Johannes H. Jensen wrote:
> Can you please try the attached program on your 12.04 system?
Based on Glib 2.32's documentation, g_log_default_ handler( ) that only debug
messages for which G_MESSAGES_DEBUG[1] contains G_LOG_DOMAIN[2] are printed out.
In other words, something like this works:
---8<---
#define G_LOG_DOMAIN "foo"
#include <glib.h>
int main ()
{
g_debug ("foo");
return 0;
};
--->8---
$ G_MESSAGES_ DEBUG=foo ./a.out
[1] developer. gnome.org/ glib/stable/ glib-Message- Logging. html#g- log-default- handler developer. gnome.org/ glib/stable/ glib-Message- Logging. html#G- LOG-DOMAIN: CAPS
http://
[2]
http://
--
Kind regards,
Loong Jin