Break on g_log in gdb.