use g_message not g_print so it can go to the log