Using glib logging functions