Using the g_debug() macro. Set G_DEBUG_MESSAGES to "mutter" to activate log. GNOME/mutter#548 GNOME/mutter!525