Make log functions global (GAMEMODE might not be initialized yet).